Last updated 9 months ago
Was this helpful?
Get the latest ledger information, including data such as chain ID, role type, ledger versions, epoch, etc.
This method will use 10 Compute Units.
10
/
curl -L \ --url 'https://mainnet.aptos.validationcloud.io/v1/<YOUR_API_KEY_HERE>/v1/'
{ "chain_id": 1, "epoch": "32425224034", "ledger_version": "32425224034", "oldest_ledger_version": "32425224034", "ledger_timestamp": "32425224034", "node_role": "validator", "oldest_block_height": "32425224034", "block_height": "32425224034", "git_hash": "text" }