New Here? Claim Your 30% Discount on Your First Blockchain Node Access!

banner image

Last updated on January 1, 1970

1 min read

Method /v1 undefined ()
connect with JSON-RPC protocol

/v1

info-circle-fill

Gets the latest ledger info such as chain ID, role type, ledgerversions, epoch, etc.

Parameters

-

Request

curl --location --request GET 'https://apt.getblock.io/v1?' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 

Response

{
    "block_height": "58851650",
    "chain_id": 1,
    "epoch": "2796",
    "git_hash": "6568c5ee6a58b4f96c0780d4f66d7e573e61c418",
    "ledger_timestamp": "1685696086534090",
    "ledger_version": "152087593",
    "node_role": "full_node",
    "oldest_block_height": "1101178",
    "oldest_ledger_version": "2287593"
}
banner icon

Start Building with GetBlock RPCs for Free