Skip to main content

IotaEvent

@iota/iota-sdk


@iota/iota-sdk / client / IotaEvent

Type Alias: IotaEvent

IotaEvent = { bcs: string; bcsEncoding: "base64"; id: EventId; packageId: string; parsedJson: unknown; sender: string; timestampMs?: string | null; transactionModule: string; type: string; } | { bcs: string; bcsEncoding: "base58"; id: EventId; packageId: string; parsedJson: unknown; sender: string; timestampMs?: string | null; transactionModule: string; type: string; }

Defined in: sdk/typescript/src/client/types/generated.ts:264

Union Members​

Type Literal​

{ bcs: string; bcsEncoding: "base64"; id: EventId; packageId: string; parsedJson: unknown; sender: string; timestampMs?: string | null; transactionModule: string; type: string; }

bcs​

bcs: string

bcsEncoding​

bcsEncoding: "base64"

id​

id: EventId

Sequential event ID, ie (transaction seq number, event seq number). 1) Serves as a unique event ID for each fullnode 2) Also serves to sequence events for the purposes of pagination and querying. A higher id is an event seen later by that fullnode. This ID is the "cursor" for event querying.

packageId​

packageId: string

Move package where this event was emitted.

parsedJson​

parsedJson: unknown

Parsed json value of the event

sender​

sender: string

Sender's IOTA address.

timestampMs?​

optional timestampMs?: string | null

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

transactionModule​

transactionModule: string

Move module where this event was emitted.

type​

type: string

Move event type.


Type Literal​

{ bcs: string; bcsEncoding: "base58"; id: EventId; packageId: string; parsedJson: unknown; sender: string; timestampMs?: string | null; transactionModule: string; type: string; }

bcs​

bcs: string

bcsEncoding​

bcsEncoding: "base58"

id​

id: EventId

Sequential event ID, ie (transaction seq number, event seq number). 1) Serves as a unique event ID for each fullnode 2) Also serves to sequence events for the purposes of pagination and querying. A higher id is an event seen later by that fullnode. This ID is the "cursor" for event querying.

packageId​

packageId: string

Move package where this event was emitted.

parsedJson​

parsedJson: unknown

Parsed json value of the event

sender​

sender: string

Sender's IOTA address.

timestampMs?​

optional timestampMs?: string | null

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

transactionModule​

transactionModule: string

Move module where this event was emitted.

type​

type: string

Move event type.