aftermath-ts-sdk - v3.3.3
    Preparing search index...

    Interface EventOnChain<Fields>

    The JSON-RPC-shaped event record consumed by the package event casters.

    Fields is the parsed event payload. Numeric fields that Sui serializes as large integers remain decimal strings in the transport shape.

    interface EventOnChain<Fields> {
        bcs: string;
        id: { eventSeq: string; txDigest: string };
        packageId: string;
        parsedJson: Fields;
        sender: string;
        timestampMs: string | number | undefined;
        transactionModule: string;
        type: string;
    }

    Type Parameters

    • Fields
    Index
    bcs: string

    The event's BCS representation as a string.

    id: { eventSeq: string; txDigest: string }

    The transaction digest and sequence number that identify the event.

    Type Declaration

    • eventSeq: string

      The event's zero-based sequence number as a decimal string.

    • txDigest: string

      The digest of the transaction that emitted the event.

    packageId: string

    The published package that defines the event type.

    parsedJson: Fields

    The event payload after the transport has parsed its JSON fields.

    sender: string

    The Sui address that sent the transaction.

    timestampMs: string | number | undefined

    The event timestamp in epoch milliseconds, when the transport provides it.

    transactionModule: string

    The Move module that emitted the event.

    type: string

    The fully qualified Move event type.