Sui
sui.rpc.v2.LedgerService/GetCheckpoint20 kredi
Return a checkpoint by sequence number or digest
Parametreler
| Ad | Tür | Açıklama |
|---|---|---|
| sequence_number | uint64 | Checkpoint sequence number. One of sequence_number or digest; when neither is set the latest checkpoint is returned. (isteğe bağlı) |
| digest | string | Checkpoint digest. One of sequence_number or digest. (isteğe bağlı) |
| read_mask | google.protobuf.FieldMask | Fields of the Checkpoint to return. Defaults to sequence_number,digest. (isteğe bağlı) |
Dönüş değeri
Tür
GetCheckpointResponse
checkpoint: the Checkpoint with the fields selected by read_mask.
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 '{
"sequence_number": 100000000,
"read_mask": "sequence_number,digest"
}' \
grpc-holy-burned-sky-sui-mainnet.rpcnode.dev:443 \
sui.rpc.v2.LedgerService/GetCheckpoint