Skip to main content
Returns the number of the most recently mined block.

Parameters

No parameters.

Returns

result
string
The current block number as a hexadecimal string.

Example

{
  "jsonrpc": "2.0",
  "method": "eth_blockNumber",
  "params": [],
  "id": 1
}