eth_blockNumber - Optimism

Returns the number of the most recent block.

Path Params
string
required
Defaults to docs-demo

For higher throughput, create your own API key

Body Params

Accepts nothing.

integer
Defaults to 1
string
Defaults to 2.0
string
Defaults to eth_blockNumber
Response

Response body
object
integer
string
string

The current block number the client is on (in hex).

Language
URL
Request
Choose an example:
application/json
ReadMe
Support Hub