Txpool error: Invalid JSON RPC response: "Unauthorized"

Hy everyone,

I am geting error: Error: Invalid JSON RPC response: “Unauthorized” when run code below.
Code running correct and error happened suddenly around 2021-11-18 17:00 UTC until now. Anyone can check this issue?

const Web3 = require('web3');
var web3 = new Web3("https://speedy-nodes-nyc.moralis.io/{mykey}/bsc/mainnet");
//add txpool support
web3.extend({
  property: 'txpool',
  methods: [{
    name: 'content',
    call: 'txpool_content'
  }]
});

web3.txpool.content((err, data) => {
    console.log(err);
    console.log(Object.keys(data.pending).length)
});

Other functions like eth_getTransaction, … working fine, but txpool get error!

we recently started to use a whitelist on what calls are allowed for speedy nodes.

what are you trying to achieve by using that txpool_content function? were you able to use it with other node providers in the past?

  • I want to get all pending transactions on BEP20.
  • Quicknode and free node https://bsc-dataseed.binance.org/ still can using this function, but currently quicknode take 3-4 seconds, so slow. Dataseed node fast but not enought data.

Does pro plan can using this function? or any payment plan?

Any update @cryptokid? How can I get whitelist on txpool_content function?

I don’t have in update yet, we’ll have to decide if we add txpool_content to whitelist.

Thank you! Please let me know after your team make decision, I am happy to paid for this function.