Skip to main content

eth_newBlockFilter

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

Params

(0)

Result

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

Example

Request

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

Result

"0x01"

Request

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