EventInfo

@Serializable
data class EventInfo(val type: EventFilterType, val ledger: Long, val ledgerClosedAt: String, val contractId: String, val id: String, val operationIndex: Long, val transactionIndex: Long, val transactionHash: String, val topic: List<String>, val value: String, val inSuccessfulContractCall: Boolean? = null)

Information about a single event in the response.

Constructors

Link copied to clipboard
constructor(type: EventFilterType, ledger: Long, ledgerClosedAt: String, contractId: String, id: String, operationIndex: Long, transactionIndex: Long, transactionHash: String, topic: List<String>, value: String, inSuccessfulContractCall: Boolean? = null)

Properties

Link copied to clipboard

The contract ID that emitted the event (for contract events)

Link copied to clipboard
val id: String

Unique identifier for the event

Link copied to clipboard

Deprecated - Whether the event was emitted in a successful contract call

Link copied to clipboard

The ledger sequence number in which the event was emitted

Link copied to clipboard

ISO 8601 timestamp of when the ledger was closed

Link copied to clipboard

Index of the operation that emitted the event within the transaction

Link copied to clipboard

List of base64-encoded SCVal XDR objects representing the event topics

Link copied to clipboard
@SerialName(value = "txHash")
val transactionHash: String

Hash of the transaction that emitted the event (hex-encoded)

Link copied to clipboard

Index of the transaction within the ledger

Link copied to clipboard

The type of event (CONTRACT, SYSTEM, or DIAGNOSTIC)

Link copied to clipboard

Base64-encoded SCVal XDR object representing the event value

Functions

Link copied to clipboard

Parses the topic field from a list of base64-encoded strings to a list of SCVal XDR objects.

Link copied to clipboard

Parses the value field from a base64-encoded string to an SCVal XDR object.