ledger info - Movement

Returns the current ledger information for the node: chain ID, current epoch, ledger version, oldest retained version, and current block height. The entry point for confirming which network a node serves and how far it has synced.

Endpoint

httpGET /v1

Example

bashexport MOVEMENT_REST=https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/

curl "${MOVEMENT_REST}v1"

Response

json{
    "chain_id": 126,
    "epoch": "742",
    "ledger_version": "285000000",
    "oldest_ledger_version": "0",
    "ledger_timestamp": "1736772000000000",
    "node_role": "full_node",
    "oldest_block_height": "0",
    "block_height": "120000000",
    "git_hash": "abcd123"
}

Response Fields

FieldTypeDescription
chain_idintegerChain identifier (126 for Movement mainnet)
ledger_versionstringCurrent ledger version (transaction count)
block_heightstringCurrent block height
epochstringCurrent epoch

Use Cases

  • Network Confirmation: Verify the chain ID and sync height
  • Head Tracking: Read the current ledger version and block height

Error Handling

ErrorMessageDescription
400 / Bad requestBad requestA path, query, or body parameter was invalid
404 / Not foundNot foundThe account, block, transaction, or resource does not exist
403 / RBAC: access deniedAccess deniedThe GetBlock access token is missing or incorrect