Search…
⌃K
Links

sui_getEvents

Return list of events for a specified query criteria.

Parameters

  • query : <EventQuery> - the event query criteria.
  • cursor : <EventID> - optional paging cursor
  • limit : <uint> - maximum number of items per page, default to [QUERY_MAX_RESULT_LIMIT] if not specified.
  • descending_order : <boolean> - query result ordering, default to false (ascending order), oldest record first.

Returns

EventPage : <Page_for_EventEnvelope_and_EventID>

Example Request and Result for sui_getEvents

Request
curl
--location --request POST 'https://sui-devnet.blastapi.io/<project_id>' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"id": 1,
"method": "sui_getEvents",
"params": [
{
"Transaction": "FBPTp2FqjT3NbK85GFTDtKTTU5qJpBqEX44GE9CfUQor"
},
{
"txSeq": 500,
"eventSeq": 10
},
1,
false
]
}'
Result
{
"jsonrpc": "2.0",
"result": {
"data": [
{
"timestamp": 0,
"txDigest": "FBPTp2FqjT3NbK85GFTDtKTTU5qJpBqEX44GE9CfUQor",
"id": {
"txSeq": 0,
"eventSeq": 0
},
"event": {
"transferObject": {
"packageId": "0x0000000000000000000000000000000000000002",
"transactionModule": "native",
"sender": "0xc9f373e51a0a03bfd8b1a861fb7e220b6617e575",
"recipient": {
"AddressOwner": "0xc677ed804f82f1c8587b98d64c00bfb46c3843bd"
},
"objectType": "0x2::example::Object",
"objectId": "0x8bf6ccfa7c65a86138698cd1fdcac3dce8d8c7ce",
"version": 2
}
}
}
],
"nextCursor": {
"txSeq": 1000,
"eventSeq": 5
}
}
}