General

Get ledger info

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

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

Response

chain_idinteger required

Chain ID of the current chain

epochstring 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_versionstring 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_versionstring 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_timestampstring 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_heightstring 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_heightstring 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.

Example response

{
  "epoch": "32425224034",
  "ledger_version": "32425224034",
  "oldest_ledger_version": "32425224034",
  "ledger_timestamp": "32425224034",
  "oldest_block_height": "32425224034",
  "block_height": "32425224034"
}

Changes

No recorded changes to this operation across all 1 revision of this API.