eth_blockNumber

Returns the number of most recent block.

Request

curl 'https://rpc.web3api.io?x-api-key=YOUR-API-KEY' \
    -X POST \
    -H 'x-amberdata-blockchain-id: ethereum-mainnet' \
    -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}'

Response

{
  "id":1,
  "jsonrpc": "2.0",
  "result": "0xc94" // 1207
}
TypeDescription
stringThe hex value corresponding to the current block number.