query Events
Queries for events on the Sui network based on a specified filter.
This method supports bidirectional pagination.
Return
A Result which is either:
Ok
: Containing a nullable QueryEventsQuery.Data object. This object includes a list of events and cursors for pagination.Err
: Containing a SuiError object with a list of GraphQLErrors.
Parameters
The EventFilter to apply to the query, such as filtering by sender or move module.
An optional cursor for backward pagination. Fetches the page of events before this cursor.
An optional cursor for forward pagination. Fetches the page of events after this cursor.
An optional integer specifying the number of events to return when paginating forward (used with after
).
An optional integer specifying the number of events to return when paginating backward (used with before
).