Skip to main content
EVM

eth_blockNumber

Summary: Get the latest block number

This request returns a hexadecimal of the current/latest block number.

Parameters

This method doesn't accept any parameters.

Returns

eth_blockNumberResponse string

Hexadecimal of the current block number the client is on.

Pattern: ^0x([1-9a-f]+[0-9a-f]*|0)$

Customize request
Parameter
Value
Request
curl https://linea-mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": 1
}'
Example response
{
"id": 1,
"jsonrpc": "2.0",
"result": "0x8a369b"
}