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
Response
The response structure is defined by the sui/rpc/v2/ledger_service.proto definition.
Response Fields
| Field | Type | Description |
|---|---|---|
chain_id | string | See proto definition |
chain | string | See proto definition |
epoch | uint64 | See proto definition |
checkpoint_height | uint64 | See proto definition |
timestamp | google.protobuf.Timestamp | See proto definition |
lowest_available_checkpoint | uint64 | See proto definition |
lowest_available_checkpoint_objects | uint64 | See proto definition |
server | string | See proto definition |
info
For full field definitions, please refer to the Sui Protobuf definitions.