Home

List events

POST
https://sui-grpc.nownodes.io/sui.rpc.v2.LedgerService/ListEvents

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

List events matching the provided filters.

Events are returned in ascending or descending packed event sequence order according to the query options ordering.

gRPC method: sui.rpc.v2.LedgerService.ListEvents (server-streaming).

This is a gRPC method (HTTP/2, Protocol Buffers), not a REST endpoint. The request and response bodies below are shown in the proto3 JSON form that tools such as grpcurl and Postman accept and print. Pass your NOWNodes API key as the api-key gRPC metadata header. Proto files: sui/rpc/v2/ledger_service.proto.

This method is server-streaming: the server keeps the call open and sends a sequence of response messages; each message has the response schema below.

Example grpcurl request:

Copied!
grpcurl \
  -insecure \
  -H 'api-key: YOUR_API_KEY' \
  -emit-defaults \
  -proto './sui-apis-grpc/proto/sui/rpc/v2/ledger_service.proto' \
  -import-path './sui-apis-grpc/proto' \
  -d '{"startCheckpoint": "1000", "endCheckpoint": "1010", "options": {"limit": 10}}' \
  'sui-grpc.nownodes.io' \
  sui.rpc.v2.LedgerService.ListEvents

Body

application/json

Request message for LedgerService.ListEvents.

readMaskobject

Optional. Mask for specifying which parts of the Event should be returned. Read mask: list of field paths to return, in snake_case (e.g. "object_id", "version", "digest"). Nested fields use dots (e.g. "effects.status").

Show child attributes
pathsArray<string>required

Field paths to return.

startCheckpointstring<uint64>

Optional. Start of the checkpoint range to query (inclusive). Defaults to genesis.

endCheckpointstring<uint64>

Optional. End of the checkpoint range to query (exclusive). Defaults to the current indexed ledger tip.

filterEventFilter

Optional. DNF filter over indexed dimensions. If absent, all events in the range are returned.

optionsQueryOptions

Optional cursor-bounded query options. If unspecified, reads in ascending order with the default item limit. The server enforces a maximum item limit and silently coerces larger values down to it. To paginate, pass the last received Watermark.cursor as options.after (ascending) or options.before (descending) on the next request.

Response

200OK

Stream of response messages.

default

gRPC error. The status code (e.g. UNAUTHENTICATED, INVALID_ARGUMENT, NOT_FOUND) is returned in the grpc-status trailer, details in grpc-message.