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"
}