GetEventsResponse

@Serializable
data class GetEventsResponse(val events: List<GetEventsResponse.EventInfo>, val cursor: String? = null, val latestLedger: Long, val oldestLedger: Long? = null, val latestLedgerCloseTime: Long? = null, val oldestLedgerCloseTime: Long? = null)

Response for JSON-RPC method getEvents.

Returns a list of events matching the specified filter criteria. Events can be contract events, system events, or diagnostic events.

See also

Constructors

Link copied to clipboard
constructor(events: List<GetEventsResponse.EventInfo>, cursor: String? = null, latestLedger: Long, oldestLedger: Long? = null, latestLedgerCloseTime: Long? = null, oldestLedgerCloseTime: Long? = null)

Types

Link copied to clipboard
@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.

Properties

Link copied to clipboard

Cursor value to be used for subsequent requests for more events

Link copied to clipboard

List of event information objects

Link copied to clipboard

The latest ledger known to Soroban RPC at the time it handled the request

Link copied to clipboard

Unix timestamp of when the latest ledger was closed (may be null)

Link copied to clipboard

The oldest ledger retained by Soroban RPC (may be null)

Link copied to clipboard

Unix timestamp of when the oldest ledger was closed (may be null)