Contents

eth_blockNumber RPC method

Parameters:

  1. None

Returns:

  1. Result - Integer value of latest block number encoded as a hexadecimal.

Code Examples:

curl http://sample-endpoint-name.network.quiknode.pro/token-goes-here/ \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"eth_blockNumber","params":[],"id":1,"jsonrpc":"2.0"}'
Ready to try QuickNode? Start your 7-day free trial