Mimics Ethereum JSON RPC’s eth_blockNumber
cURL
curl --request GET \ --url 'https://eth.blockscout.com/api/?apikey=&module=block&action=eth_block_number'
{ "jsonrpc": "2.0", "result": "0x103538a", "id": 1 }
Optional API key for increased rate limits.
Without API key:
With API key:
Usage: Add apikey=YOUR_KEY to any request query string.
apikey=YOUR_KEY
Module name (must be 'block')
block
eth_block_number
Latest block number retrieved successfully
"2.0"
Block number in hex format
"0x103538a"
1
Was this page helpful?