GetEventsRequest

@Serializable
data class GetEventsRequest(val startLedger: Long? = null, val endLedger: Long? = null, val filters: List<GetEventsRequest.EventFilter>, val pagination: GetEventsRequest.Pagination? = null)

Request for JSON-RPC method getEvents.

Fetches a filtered list of events emitted by a given ledger range.

See also

Constructors

Link copied to clipboard
constructor(startLedger: Long? = null, endLedger: Long? = null, filters: List<GetEventsRequest.EventFilter>, pagination: GetEventsRequest.Pagination? = null)

Types

Link copied to clipboard
@Serializable
data class EventFilter(val type: GetEventsRequest.EventFilterType? = null, val contractIds: List<String>? = null, val topics: List<List<String>>? = null)

Filter configuration for event matching.

Link copied to clipboard

Type of event to filter.

Link copied to clipboard
@Serializable
data class Pagination(val cursor: String? = null, val limit: Long? = null)

Pagination options for controlling the number of results returned.

Properties

Link copied to clipboard

Ledger sequence number to end fetching events (inclusive). Optional. Must be greater than startLedger if both are provided. Must be omitted when cursor is provided.

Link copied to clipboard

List of event filters to match against. Events matching any filter will be included. Maximum 5 filters allowed. Can be empty to match all events.

Link copied to clipboard

Optional pagination configuration for limiting and controlling result sets.

Link copied to clipboard

Ledger sequence number to start fetching events from (inclusive). Required when pagination.cursor is null. Must be omitted when cursor is provided.