Sui
sui.rpc.v2.SubscriptionService/SubscribeCheckpoints100 Credits
Stream new checkpoints (billed once per stream)
Parameter
| Name | Typ | Beschreibung |
|---|---|---|
| read_mask | google.protobuf.FieldMask | Fields of every Checkpoint to return. (optional) |
| filter | TransactionFilter | Only deliver checkpoints matching this transaction filter. When omitted every checkpoint is delivered. (optional) |
Rückgabewert
Typ
stream SubscribeCheckpointsResponse
Server stream. cursor (checkpoint sequence number covered so far, on every message) and checkpoint (unset on progress-only messages).
Codebeispiele
# 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"
}' \
grpc-holy-burned-sky-sui-mainnet.rpcnode.dev:443 \
sui.rpc.v2.SubscriptionService/SubscribeCheckpoints