文档
定价GitHub控制台

Sui

sui.rpc.v2.LedgerService/GetEpoch20 额度

Return an epoch with its system state

网络: sui

参数

名称类型描述
epochuint64Epoch number. When omitted the current epoch is returned. (可选)
read_maskgoogle.protobuf.FieldMaskFields of the Epoch to return. Defaults to epoch. (可选)

返回值

类型

GetEpochResponse

epoch: the Epoch with the fields selected by read_mask.

代码示例

# 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