Skip to main content

eth_newBlockFilter

Ethereum API

Creates a filter in the node, to notify when a new block arrives.

Params

(0)

Result

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

Request

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