cURL
curl --request GET \ --url https://api.chainbase.online/v1/block/number/latest \ --header 'x-api-key: <x-api-key>'
{ "code": 0, "message": "ok", "data": { "number": 123, "hash": "<string>" } }
Get the latest block height of blockchain network.
"demo"
chain network id, see list of details
Successful Response
The response is of type object.
object