Comment on page
eth_blockNumber
Returns the number of the most recent block.
None
result
- An integer value of the current block number the client is on encoded as hexadecimalcurl --location 'https://rpc.eth.gateway.fm' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": 71
}'
{
"jsonrpc": "2.0",
"id": 71,
"result": "0xd77735"
}
Last modified 7mo ago