eth_blockNumber

Returns current block height in a hexadecimal number

Parameter

  • No parameters are needed.
curl https://ethereum-mainnet-archive.allthatnode.com/8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj \
--request POST \
--header "Content-Type: application/json" \
--data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_blockNumber",
  "params": []
}'

Returns

  • QUANTITY - Hex encoded integer of the current block number the client is on.
{"jsonrpc":"2.0","id":1,"result":"0x10e94ab"}

Try Yourself

Language
Click Try It! to start a request and see the response here!