eth_newBlockFilter

Creates a new filter in the node. Used to notify when a new block arrived. To check for state changes call eth_getFilterChangesarrow-up-right.

Parametersarrow-up-right

None

Return Typearrow-up-right

HexString<FilterId> - The new associated filter id.

Examplearrow-up-right

await provider.request({
  method: "eth_newBlockFilter",
  params: [],
});
// "0x81440bfbd6138ec9fe6d6ec4398b0b4879fb182f3cd8"

Last updated

Was this helpful?