Appearance
eth_blockNumber
served · same as reth
Returns the number of the newest block that the node has.
When to use
Use it to find the head of the chain, or to check that the node follows the chain.
Example
bash
curl -s -X POST -H 'Content-Type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "eth_blockNumber", "params": []}' \
http://127.0.0.1:8547json
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_blockNumber",
"params": []
}Response
Live mainnet, 2026-10-14. Checked against reth 2.7: equal.
json
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x18faced"
}The answer changes with time, so it is compared by shape (keys and types; for a list, its first item), not by value.
Parameters
None.
Returns
The block number as a hex string, for example 0x18fa690.
Notes and limits
- The number is the head of the last forkchoice update from the consensus client, also before the node writes the block to its database.
cinder --serveanswers from the database head, which can be behind the chain head of the node while the node writes blocks.
Compared with reth
reth also answers from its chain head.
The live example above gives the same answer on Cinder and on reth 2.7.
Related methods
eth_getBlockByNumber, eth_syncing.
Schema (OpenRPC)
The official specification: eth_blockNumber in ethereum/execution-apis.
Result: string
json
{
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "hex encoded unsigned integer",
"type": "string"
}