gRPCGetServiceInfo

sui-mainnet.nodit.io:443 sui.rpc.v2.LedgerService/GetServiceInfounary

Returns general information about the current state of the service.

TransportgRPC

Request and response messages are identical for both transports. Only the wire protocol, headers, and client library differ.

Protocol
Native gRPC over HTTP/2 with TLS. Suited to server-side clients and grpcurl.
Content-Type
application/grpc
Headers
x-api-key
Streaming
Server, client, and bidirectional streaming are all supported.
Errors
grpc-status and grpc-message are delivered as HTTP/2 trailers.
Request Body
Responses
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.

X-API-KEY
RequestCU0
grpcurl
grpcurl \
  -import-path . -proto sui/rpc/v2/ledger_service.proto \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -d '{}' \
  sui-mainnet.nodit.io:443 sui.rpc.v2.LedgerService/GetServiceInfo
Response
Example · 200
{
  "chain_id": "mainnet",
  "chain": "mainnet",
  "epoch": 100,
  "checkpoint_height": 0,
  "timestamp": "",
  "lowest_available_checkpoint": 0,
  "lowest_available_checkpoint_objects": 0,
  "server": ""
}