Sui
sui.rpc.v2.LedgerService/ListCheckpointsКредиты: 40
Stream checkpoints in a range (billed once per stream)
Параметры
| Имя | Тип | Описание |
|---|---|---|
| read_mask | google.protobuf.FieldMask | Fields of every Checkpoint to return. (необязательно) |
| start_checkpoint | uint64 | First checkpoint of the range, inclusive. Defaults to genesis. (необязательно) |
| end_checkpoint | uint64 | End of the range, exclusive. Defaults to the current indexed ledger tip. (необязательно) |
| filter | TransactionFilter | Filter over indexed transaction fields (disjunctive normal form). A checkpoint matches when any of its transactions does. When omitted all checkpoints in the range are returned. (необязательно) |
| options | QueryOptions | Cursor-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). (необязательно) |
Результат
Тип
stream ListCheckpointsResponse
Server stream. Each message holds the checkpoint, a watermark (resume cursor, present on every message) and end, set once on the final message with the reason the stream ended.
Примеры кода
# 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 '{
"read_mask": "sequence_number,digest",
"start_checkpoint": 100000000,
"end_checkpoint": 100000010
}' \
grpc-holy-burned-sky-sui-mainnet.rpcnode.dev:443 \
sui.rpc.v2.LedgerService/ListCheckpoints