⛓️ eth_blockNumber
RPC Method (Base Chain)
The eth_blockNumber
method returns the number of the most recently mined block — encoded as a hexadecimal string.
It’s useful if you need to know the latest block height for syncing, indexing, or just monitoring the network in real time.
📄 Description
- Returns the latest block number available on the chain.
- Output is encoded in hexadecimal format.
- Requires no parameters.
🔧 Parameters
None.
Need RPC API keys?
Get 12.5M archival requests for free today.
🔁 Returns
A single hex
string — the current block number.
Example:
"0x98b7db"
This means the latest block number is 10,000,155
in decimal.
🛰️ Request
POST https://base-mainnet.chainnodes.org/YOUR-API-KEY
💡 Example
- HTTPS POST Request with a JSON RPC call in the body
- Replace
YOUR-API-KEY
with the key from your CHAINNODES Dashboard (opens in a new tab) - Replace
mainnet
with your desired network (e.g.base-mainnet
)
curl https://base-mainnet.chainnodes.org/YOUR-API-KEY \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
📦 Body
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x98b7db"
}