eth_blockNumber

Returns highest block number

web3.eth.getBlockNumber([callback])

Returns

The number of the most recent block.

Example

> web3.eth.getBlockNumber().then(console.log)
> 114913

Last updated