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

# Get ledger info

`GET /`

## Request

- Base URL: `aptos-mainnet.nodereal.io/v1/{api_key}/v1` (relative, and the document’s source URL is not known)
- URL: `aptos-mainnet.nodereal.io/v1/{api_key}/v1/`
- Auth: none declared

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 "/").
  - `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.

## Other responses

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

---

[API](https://skmtc.dev/nodereal/apis/aptos-node-api.md) - [All operations](https://skmtc.dev/nodereal/apis/aptos-node-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nodereal/apis/aptos-node-api/revisions/46b3dead5102?raw)
