For AI agents: a documentation index is available at /llms.txt. A markdown version of this page is available at the same URL with .md appended (or via Accept: text/markdown).
Skip to main content

eth_blockNumber

Returns the number of most recent block.

Parameters

This method doesn't accept any parameters.

Returns

hex encoded unsigned integer

Example request
await provider.request({
method: 'eth_blockNumber',
params: [],
})
Example response
{
"id": 1,
"jsonrpc": "2.0",
"result": "0x2377"
}