Skip to main content
Plasma API method that creates a filter in the node to notify when new pending transactions arrive.

Parameters

None

Response

  • quantity — a filter ID

eth_newPendingTransactionFilter code examples

const { JsonRpcProvider } = require("ethers");

const provider = new JsonRpcProvider("CHAINSTACK_NODE_URL");

async function call() {
  const result = await provider.send("eth_newPendingTransactionFilter", []);
  console.log(result);
}

call();