PreciosGitHubPanel

Sui

suix_queryEvents50 créditos

Query events with filters

Red: sui

Parámetros

NombreTipoDescripción
queryobjectEvent filter, for example { Sender }, { Transaction }, { Package }, { MoveModule: { package, module } }, { MoveEventType }, { TimeRange: { startTime, endTime } } or { All: [] }.
cursorobjectEventID { txDigest, eventSeq } to start after, the nextCursor of the previous page. (opcional)
limitnumberMaximum number of items in the page. The node caps it at its own maximum. (opcional)
descending_orderbooleanfalse (the default) returns the oldest events first, true the newest first. (opcional)

Valor devuelto

Tipo

object

A page: data (array of SuiEvent), nextCursor and hasNextPage.

Ejemplos 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
  ]
}'