Sui
suix_queryEvents50 créditos
Query events with filters
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
| query | object | Event filter, for example { Sender }, { Transaction }, { Package }, { MoveModule: { package, module } }, { MoveEventType }, { TimeRange: { startTime, endTime } } or { All: [] }. |
| cursor | object | EventID { txDigest, eventSeq } to start after, the nextCursor of the previous page. (opcional) |
| limit | number | Maximum number of items in the page. The node caps it at its own maximum. (opcional) |
| descending_order | boolean | false (the default) returns the oldest events first, true the newest first. (opcional) |
Retorno
Tipo
object
A page: data (array of SuiEvent), nextCursor and hasNextPage.
Exemplos de código
curl https://holy-burned-sky-sui-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7 \
-X POST \
-H 'content-type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "suix_queryEvents",
"params": [
{
"MoveEventModule": {
"package": "0x0000000000000000000000000000000000000000000000000000000000000002",
"module": "coin"
}
},
null,
10,
true
]
}'