Skip to main content

eth_blockNumber

Returns the number of most recent block.

Params

This method does not accept any parameters.

Result

Returns a Promise that resolves with an integer that represents the current block number.

Example

const blockNumber = await provider.request({ method: 'eth_blockNumber' });
console.log(blockNumber); // [1]