Skip to main content

GetServiceInfo

gRPC
RPC Methodsui.rpc.v2.LedgerService/GetServiceInfo

Returns general information about the current state of the service.

Proto files required

Running the examples below requires the official Sui proto files. Download the proto files, then set the example's -import-path relative to the proto root (the -proto path in the examples is relative to the proto root).

github.com/MystenLabs/sui-apis/tree/main/proto

Response Message
chain_idstring
The chain identifier of the chain that this node is on. The chain identifier is the digest of the genesis checkpoint (sequence number 0).
chainstring
Human-readable name of the chain that this node is on (e.g., mainnet, testnet).
epochinteger
Current epoch of the node based on its highest executed checkpoint.
checkpoint_heightinteger
Checkpoint height of the most recently executed checkpoint.
timestampstring
Timestamp of the most recently executed checkpoint.
lowest_available_checkpointinteger
Lowest available checkpoint.
lowest_available_checkpoint_objectsinteger
Lowest checkpoint for which objects are available.
serverstring
Software version of the server.
grpcurl
grpcurl \
-import-path . \
-proto sui/rpc/v2/ledger_service.proto \
-H 'X-API-KEY: nodit-demo' \
-d '{}' \
sui-mainnet.nodit.io:443 \
sui.rpc.v2.LedgerService/GetServiceInfo