Event

interface Event

An event.

Properties

Link copied to clipboard
abstract val checkpoint: <Error class: unknown class>?

The sequence number of the checkpoint that includes the transaction that emitted this event. Populated when the event is delivered on its own (for example via LedgerService.ListEvents); left unset when the event is carried inside its transaction's events list, where the enclosing ExecutedTransaction already provides this context.

Link copied to clipboard
abstract val contents: Bcs

BCS serialized bytes of the event.

Link copied to clipboard
abstract val eventIndex: <Error class: unknown class>?

Zero-based index of this event within its transaction's event list.

Link copied to clipboard
abstract val eventType: String?

The type of the event emitted.

Link copied to clipboard
abstract val json: Value

JSON rendering of the event.

Link copied to clipboard
abstract val module: String?

Module name of the top-level function invoked by a MoveCall command that triggered this event to be emitted.

Link copied to clipboard
abstract val packageId: String?

Package ID of the top-level function invoked by a MoveCall command that triggered this event to be emitted.

Link copied to clipboard

Returns the field-presence view for this Event instance.

Link copied to clipboard
abstract val sender: String?

Address of the account that sent the transaction where this event was emitted.

Link copied to clipboard
abstract val transactionDigest: String?

The digest of the transaction that emitted this event.

Link copied to clipboard
abstract val transactionIndex: <Error class: unknown class>?

Zero-based position of the emitting transaction within its containing checkpoint. For clients verifying authenticated event streams this index is part of the BCS-encoded EventCommitment leaf used to construct the per-checkpoint merkle root.

Functions

Link copied to clipboard
Link copied to clipboard
fun Event.copy(body: <Error class: unknown class>.() -> Unit = {}): Event

Copies the original message, including unknown fields.