Home

List checkpoints

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

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

List checkpoints matching the provided filters.

Checkpoints are returned in ascending or descending checkpoint sequence number order according to the query options ordering. A checkpoint matches if any transaction it contains satisfies the filter.

gRPC method: sui.rpc.v2.LedgerService.ListCheckpoints (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.ListCheckpoints

Body

application/json

Request message for LedgerService.ListCheckpoints.

readMaskobject

Optional. Mask for specifying which parts of the Checkpoint should be returned (e.g. summary, contents, signatures). 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.

filterTransactionFilter

Optional. DNF filter over indexed transaction dimensions. A checkpoint matches if any transaction it contains satisfies the filter. If absent, all checkpoints 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.