Skip to main content

eth_blockNumber

Returns the number of the most recent block.

Parameters​

None.

Returns​

Hexadecimal integer of the current block number.

Example​

Request
curl https://rpc.linea.build \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": 1
}'
Example response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x1ce5452"
}

Was this page helpful?