Skip to main content
Defined in the Ethereum JSON-RPC Specification
Returns the number of most recent block.

Parameters

This method does not accept any parameters.

Returns

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

Error Handling

The result is the block number in hexadecimal format. Convert to decimal to get the actual block number.