eth_blockNumber
Returns the number of the most recently mined block.
Parameters
Section titled “Parameters”None.
Returns
Section titled “Returns”| Field | Type | Description |
|---|---|---|
result | string | The current block number as a hexadecimal string. |
Example
Section titled “Example”Request
Section titled “Request”{ "jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}Response
Section titled “Response”{ "jsonrpc": "2.0", "id": 1, "result": "0x158a0e9"}