eth_blockNumber

Network: Ethereum Sepolia · Testnet · Chain ID 11155111 (0xaa36a7)

Counts as 1 request. See Request Counting.

Returns the number of the most recent block.

Parameters

None.

Returns

QUANTITY — Integer of the current block number the client is on.

Request

{ "jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1 }

Response

{ "jsonrpc": "2.0", "id": 1, "result": "0x134e82a" }

Code Examples

curl -X POST https://ethereum-sepolia-rpc.blockreq.com/v1/rpc/public \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'

Try It