---
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 "/").
  - `chain_id` integer, required
  - `epoch` string, uint64, required — A string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatability 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 compatability 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 compatability 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 compatability with languages such as JavaScript that do not parse u64s in JSON natively.
  - `node_role` 'validator' | 'full_node', required

## Other responses

- `400`
- `500`

## Changes

- **2022-08-02** (v1) `75cf99be9389` — 2 warning, 2 info
  - added the new `full_node` enum value to the `node_role` response property for the response status `200`
  - added the new `validator` enum value to the `node_role` response property for the response status `200`
  - removed the `FullNode` enum value from the `node_role` response property for the response status `200`
  - removed the `Validator` enum value from the `node_role` response property for the response status `200`
- **2022-08-01** (v1) `ad82919b4797` — 10 warning, 12 info
  - added the new `bcs_serialization_error` enum value to the `error_code` response property for the response status `400`
  - added the new `bcs_serialization_error` enum value to the `error_code` response property for the response status `500`
  - added the new `invalid_bcs_in_storage_error` enum value to the `error_code` response property for the response status `400`
  - added the new `invalid_bcs_in_storage_error` enum value to the `error_code` response property for the response status `500`
  - …18 more
- **2022-08-01** (v1) `5db9ba580d74` — 1 info
  - removed the non-success response with the status `415`

[Change history](https://skmtc.dev/apscan/apis/aptos-node-api/changes/get.md)

---

[API](https://skmtc.dev/apscan/apis/aptos-node-api.md) · [All operations](https://skmtc.dev/apscan/apis/aptos-node-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/apscan/aptos-node-api/revisions/2953a57ebb77/schema)
