Skip to main content
Ethereum API
Multichain API

eth_newBlockFilter

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

Parameters

This method doesn't accept any parameters.

Returns

Filter identifier string

hex encoded unsigned integer

Pattern: ^0x([1-9a-f]+[0-9a-f]*|0)$

Customize request
Parameter
Value
Connect your MetaMask wallet to run requests successfully.
Request
await window.ethereum.request({
"method": "eth_newBlockFilter",
"params": [],
});
Example response
"0x01"