Last updated 1 year ago
Returns the number of most recent block.
Parameters
None
Returns
QUANTITY - integer of the current block number the client is on.
QUANTITY
curl --request POST \ --url https://endpoints.omniatech.io/v1/RPC_ENDPOINT \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "id": 1, "jsonrpc": "2.0", "method": "eth_blockNumber" } '
{ "id":1, "jsonrpc": "2.0", "result": "0x4b7" // 1207 }