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!