suix_queryEvents

Extended API Return list of events for a specified query criteria

Parameters

  • query : <EventFilter> - 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_Event_and_EventID>

Example Request and Result for suix_queryEvents

Request

curl --location 'https://sui-testnet.blastapi.io/<project-id>' \
--header 'Content-Type: application/json' \
--data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "suix_queryEvents",
  "params": [
    {
      "Sender":"0xdd944d0d5418aeb64ceeda8b57d7481f1e03d10bca3595d17bf12bc78bd3fa98"
    },
    {"txDigest":"4gJLfT5fEXBFB3SVKBqeuheFM7depHVKbLpjngoAVXrX",
                    "eventSeq": "0"},
    100,
    false
  ]
}'

Result

{
    "jsonrpc": "2.0",
    "result": {
        "data": [],
        "nextCursor": {
            "txDigest": "4gJLfT5fEXBFB3SVKBqeuheFM7depHVKbLpjngoAVXrX",
            "eventSeq": "0"
        },
        "hasNextPage": false
    },
    "id": 1
}

Last updated