eth_blockNumber - Ethereum
eth_blockNumber on Ethereum: returns the number of the most recent block. Parameters, response and request example for the RPC Fast endpoint.
Returns the number of the most recent block.
Parameters
None.
Returns
Block number as hex.
Example
Request
curl https://eth-mainnet.rpcfast.com/?api_key=<API_KEY> \
-X POST -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}'Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x192a368"
}See Compute Units for the price of this method on Ethereum.
Last updated