# GetServiceInfo - Inspect Sui Node State via gRPC

`LedgerService.GetServiceInfo` returns the node's current network identity and synchronization position. Use it for readiness checks, version discovery, and retention-aware recovery.

## Method Signature

- **Service:** `sui.rpc.v2.LedgerService`
- **Method:** `GetServiceInfo`
- **Type:** Unary RPC

## Request Parameters

This method accepts no parameters.

## Request Example

```bash
grpcurl \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{}' \
  api-sui-mainnet-full.n.dwellir.com:443 \
  sui.rpc.v2.LedgerService/GetServiceInfo
```

## Response Fields

- `chain_id` (`string, optional`): Digest of the genesis checkpoint.
- `chain` (`string, optional`): Network name.
- `epoch` (`uint64, optional`): Epoch at the highest executed checkpoint.
- `checkpoint_height` (`uint64, optional`): Highest executed checkpoint.
- `timestamp` (`Timestamp, optional`): Timestamp of the highest executed checkpoint.
- `lowest_available_checkpoint` (`uint64, optional`): Earliest retained checkpoint and transaction data.
- `lowest_available_checkpoint_objects` (`uint64, optional`): Earliest retained object data.
- `server` (`string, optional`): Node software version.

## Successful Response

```protobuf
message GetServiceInfoResponse {
  optional string chain_id = 1;
  optional string chain = 2;
  optional uint64 epoch = 3;
  optional uint64 checkpoint_height = 4;
  optional Timestamp timestamp = 5;
  optional uint64 lowest_available_checkpoint = 6;
  optional uint64 lowest_available_checkpoint_objects = 7;
  optional string server = 8;
}
```

The `checkpoint_height` field identifies the highest executed checkpoint. Compare it across requests to confirm advancement. Before backfilling older data, compare the required checkpoint with `lowest_available_checkpoint` and `lowest_available_checkpoint_objects`.

## Related Methods

- [GetCheckpoint](https://www.dwellir.com/docs/sui/grpc/ledger/get-checkpoint)
- [ListCheckpoints](https://www.dwellir.com/docs/sui/grpc/ledger/list-checkpoints)
- [SubscribeCheckpoints](https://www.dwellir.com/docs/sui/grpc/subscription/subscribe-checkpoints)

See the [official Sui gRPC schema](https://github.com/MystenLabs/sui-apis/blob/main/proto/sui/rpc/v2/ledger_service.proto) for the current protobuf definition.
