Skip to main content

Type Alias: IotaEvent

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

Type Declaration

{
id: EventId;
packageId: string;
parsedJson: unknown;
sender: string;
timestampMs?: string | null;
transactionModule: string;
type: string;
bcs: string;
bcsEncoding: "base64";
}
NameTypeDescription
idEventIdSequential 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.
packageIdstringMove package where this event was emitted.
parsedJsonunknownParsed json value of the event
senderstringSender's IOTA address.
timestampMs?string | nullUTC timestamp in milliseconds since epoch (1/1/1970)
transactionModulestringMove module where this event was emitted.
typestringMove event type.
bcsstring-
bcsEncoding"base64"-
{
id: EventId;
packageId: string;
parsedJson: unknown;
sender: string;
timestampMs?: string | null;
transactionModule: string;
type: string;
bcs: string;
bcsEncoding: "base58";
}
NameTypeDescription
idEventIdSequential 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.
packageIdstringMove package where this event was emitted.
parsedJsonunknownParsed json value of the event
senderstringSender's IOTA address.
timestampMs?string | nullUTC timestamp in milliseconds since epoch (1/1/1970)
transactionModulestringMove module where this event was emitted.
typestringMove event type.
bcsstring-
bcsEncoding"base58"-