---
title: "Get ledger info"
method: GET
path: "/"
tags: ["General"]
---

# Get ledger info

`GET /`

Get the latest ledger information, including data such as chain ID,
role type, ledger versions, epoch, etc.

## Response `200`

- IndexResponse — The struct holding all data returned to the client by the index endpoint (i.e., GET "/"). Only for responding in JSON
  - `chain_id` integer, required — Chain ID of the current chain
  - `epoch` string, uint64, required — A string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
  - `ledger_version` string, uint64, required — A string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
  - `oldest_ledger_version` string, uint64, required — A string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
  - `ledger_timestamp` string, uint64, required — A string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
  - `node_role` 'validator' | 'full_node', required
  - `oldest_block_height` string, uint64, required — A string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
  - `block_height` string, uint64, required — A string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
  - `git_hash` string — Git hash of the build of the API endpoint. Can be used to determine the exact software version used by the API endpoint.

## Other responses

- `400`
- `403`
- `500`
- `503`

## Changes

- **2025-10-09** `5bfbbc5f3ce7` — 7 breaking, 34 warning
  - the mandatory response header `X-APTOS-BLOCK-HEIGHT` removed for the status `200`
  - the mandatory response header `X-APTOS-CHAIN-ID` removed for the status `200`
  - the mandatory response header `X-APTOS-EPOCH` removed for the status `200`
  - the mandatory response header `X-APTOS-LEDGER-OLDEST-VERSION` removed for the status `200`
  - …37 more
- **2025-06-03** `6a8502f67ac1` — 4 warning
  - added the new `rejected_by_filter` enum value to the `error_code` response property for the response status `400`
  - added the new `rejected_by_filter` enum value to the `error_code` response property for the response status `403`
  - added the new `rejected_by_filter` enum value to the `error_code` response property for the response status `500`
  - added the new `rejected_by_filter` enum value to the `error_code` response property for the response status `503`
- **2023-05-16** `28d6217d1579` — 4 warning
  - added the new `state_value_not_found` enum value to the `error_code` response property for the response status `400`
  - added the new `state_value_not_found` enum value to the `error_code` response property for the response status `403`
  - added the new `state_value_not_found` enum value to the `error_code` response property for the response status `500`
  - added the new `state_value_not_found` enum value to the `error_code` response property for the response status `503`

[Change history](https://skmtc.dev/pontem-network/apis/lumio-node-api/changes/get.md)

---

[API](https://skmtc.dev/pontem-network/apis/lumio-node-api.md) · [All operations](https://skmtc.dev/pontem-network/apis/lumio-node-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pontem-network/lumio-node-api/revisions/385d1aaf056f/schema)
