Skip to main content

Get Service Info

Get network chain identifier via LedgerService/GetServiceInfo. Returns chain_id in base58 format for network verification.

Service

sui.rpc.v2.LedgerService

Parity

Direct

This method has a direct mapping from the JSON-RPC method sui_getChainIdentifier.

Request

Parameters

{}

Example (grpcurl)

grpcurl -H "x-api-key: YOUR_API_KEY" \
-d '{}' \
grpc.surflux.dev:443 \
sui.rpc.v2.LedgerService/GetServiceInfo
Run in Playground

Response

The response structure is defined by the sui/rpc/v2/ledger_service.proto definition.

Response Fields

FieldTypeDescription
chain_idstringSee proto definition
chainstringSee proto definition
epochuint64See proto definition
checkpoint_heightuint64See proto definition
timestampgoogle.protobuf.TimestampSee proto definition
lowest_available_checkpointuint64See proto definition
lowest_available_checkpoint_objectsuint64See proto definition
serverstringSee proto definition
info

For full field definitions, please refer to the Sui Protobuf definitions.