FiyatlandırmaGitHubKontrol paneli

Sui

sui.rpc.v2.LedgerService/ListEvents50 kredi

Stream events in a range (billed once per stream)

Ağ: sui

Parametreler

AdTürAçıklama
read_maskgoogle.protobuf.FieldMaskFields of every Event to return. (isteğe bağlı)
start_checkpointuint64First checkpoint of the range, inclusive. Defaults to genesis. (isteğe bağlı)
end_checkpointuint64End of the range, exclusive. Defaults to the current indexed ledger tip. (isteğe bağlı)
filterEventFilterFilter over indexed event fields (disjunctive normal form). When omitted all events in the range are returned. (isteğe bağlı)
optionsQueryOptionsCursor-bounded query options: ascending (default) or descending order, the item limit (capped by the server) and the after / before cursors. To paginate, pass the last Watermark.cursor of the stream as after (ascending) or before (descending). (isteğe bağlı)
start_transaction_indexuint64Inclusive position of the first transaction within start_checkpoint. Requires start_checkpoint. (isteğe bağlı)
start_event_indexuint32Inclusive position of the first event within the transaction at start_transaction_index. Requires start_transaction_index. (isteğe bağlı)
end_transaction_indexuint64Exclusive position within the last checkpoint of the range. Requires end_checkpoint. (isteğe bağlı)
end_event_indexuint32Exclusive event position within the transaction at end_transaction_index. Requires end_transaction_index. (isteğe bağlı)

Dönüş değeri

Tür

stream ListEventsResponse

Server stream. Each message holds an event, a watermark and, on the final message, end with the reason the stream ended.

Kod örnekleri

# the key of the endpoint goes in the x-token header; add -proto <file> when the node has no gRPC reflection
grpcurl \
  -H 'x-token: 7c9e6679-7425-40de-944b-e07fc1f90ae7' \
  -d '{
  "start_checkpoint": 100000000,
  "end_checkpoint": 100000002
}' \
  grpc-holy-burned-sky-sui-mainnet.rpcnode.dev:443 \
  sui.rpc.v2.LedgerService/ListEvents