Parameters
object— the filter options with fields likefromBlock,toBlock,address,topics
Response
quantity— a filter ID
object — the filter options with fields like fromBlock, toBlock, address, topicsquantity — a filter IDeth_newFilter code examplesconst { JsonRpcProvider } = require("ethers");
const provider = new JsonRpcProvider("CHAINSTACK_NODE_URL");
async function call() {
const result = await provider.send("eth_newFilter", [
{
fromBlock: "latest",
toBlock: "latest"
}
]);
console.log(result);
}
call();
Was this page helpful?