Skip to main content

Event

No description

type Event {
sendingModule: MoveModule
sender: Address
timestamp: DateTime
type: MoveType!
bcs: Base64!
data: MoveData!
json: JSON!
}

Fields

Event.sendingModule ● MoveModule object

The Move module containing some function that when called by a programmable transaction block (PTB) emitted this event. For example, if a PTB invokes A::m1::foo, which internally calls A::m2::emit_event to emit an event, the sending module would be A::m1.

Event.sender ● Address object

Address of the sender of the event

Event.timestamp ● DateTime scalar

UTC timestamp in milliseconds since epoch (1/1/1970)

Event.type ● MoveType! non-null object

The value's Move type.

Event.bcs ● Base64! non-null scalar

The BCS representation of this value, Base64 encoded.

Event.data ● MoveData! non-null scalar

Structured contents of a Move value.

Event.json ● JSON! non-null scalar

Representation of a Move value in JSON, where:

  • Addresses, IDs, and UIDs are represented in canonical form, as JSON strings.
  • Bools are represented by JSON boolean literals.
  • u8, u16, and u32 are represented as JSON numbers.
  • u64, u128, and u256 are represented as JSON strings.
  • Vectors are represented by JSON arrays.
  • Structs are represented by JSON objects.
  • Empty optional values are represented by null.

This form is offered as a less verbose convenience in cases where the layout of the type is known by the client.

Member Of

EventConnection object ● EventEdge object