Event

Interface
Structured data emitted by a smart contract during a method invocation. Typically emitted in response to state changes within the contract and to notify contract listeners of an action happening within the contract.
export interface Event<TName extends string = string, TEventParameters = EventParameters> extends RawActionBase { 
  readonly type: 'Event'; 
  readonly name: TName; 
  readonly parameters: TEventParameters; 
} 

Properties

type
'Event'
type differentiates the Event object from other Action objects, i.e. Log.
name
TName
An implementation defined string identifying this Event. In the automatically generated NEO•ONE smart contract APIs this identifier distinguishes the type of Event and the exact type of the parameters of the Event.
parameters
TEventParameters
Structured data attached to the event.
  • @neo-one/client
  • @neo-one/smart-contract
DOCS
InstallationMain ConceptsAdvanced GuidesAPI ReferenceContributing
CHANNELS
GitHubStack OverflowDiscord ChatTwitterYouTube
COPYRIGHT © 2021 NEO•ONE