Trying to setup interaction with a contract to stream pending transactions but I don't see how to do so for a specific contract or address. Ethers js documentation shows how to pull all pending tx (which in theory, could work if filtered for specified address) however, there must be a better way to accomplish this.

A sample of my code:

  let addressToWatch = "0x.....89"

  let myFilter = {
      address: "addressToWatch",
      fromBlock: 'pending',

  customWsProvider.on(myFilter, (log, event) => {

1 Answer 1


You can refer to this article by Quicknode https://www.quicknode.com/guides/web3-sdks/how-to-stream-pending-transactions-with-ethersjs

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.