Skip to main content

eth_blockNumber

Ethereum API

Returns the number of most recent block.

Params

(0)

Result

(Block number)
string
Match pattern:
^0x([1-9a-f]+[0-9a-f]*|0)$

Request

await window.ethereum.request({
"method": "eth_blockNumber",
"params": []
});