Skip to content

eth_blockNumber

Returns the number of the most recent block.

Returns

string

A hexadecimal string representing the integer of the current block number the client is on.

Example

"0x4b7" // 1207

Errors

This method does not typically return errors.