cURL
curl --request GET \ --url https://api.chainbase.online/v1/block/number/latest \ --header 'x-api-key: <x-api-key>'
{ "data": { "number": 123, "hash": "<string>" }, "code": 0, "message": "ok" }
Get the latest block height of blockchain network.
Documentation IndexFetch the complete documentation index at: https://docs.chainbase.com/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.chainbase.com/llms.txt
Use this file to discover all available pages before exploring further.
"demo"
chain network id, see list of details
Successful Response
Show child attributes