Sui
sui.rpc.v2.LedgerService/GetEpoch20 kredi
Return an epoch with its system state
Parametreler
| Ad | Tür | Açıklama |
|---|---|---|
| epoch | uint64 | Epoch number. When omitted the current epoch is returned. (isteğe bağlı) |
| read_mask | google.protobuf.FieldMask | Fields of the Epoch to return. Defaults to epoch. (isteğe bağlı) |
Dönüş değeri
Tür
GetEpochResponse
epoch: the Epoch 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 '{
"epoch": 500,
"read_mask": "epoch"
}' \
grpc-holy-burned-sky-sui-mainnet.rpcnode.dev:443 \
sui.rpc.v2.LedgerService/GetEpoch