v50

latestOpenAPI 3.0.0Apache 2.0raw.githubusercontent.com2025-10-2028153455.3 KB
General

Get ledger info

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

get/

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.

git_hashstring

Git hash of the build of the API endpoint. Can be used to determine the exact software version used by the API endpoint.

Example response

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