I want to get the list of pending transactions on the Ropsten network, but web3.eth.getPendingTransactions() returns an empty array, while I can see on EtherScan that there are several transactions yet to be mined. I tried connecting to both mine and Infura's nodes and the result is the same.
Calling web3.eth.getPendingTransactions().then(console.log) should print a list of pending transactions.
Calling web3.eth.getPendingTransactions().then(console.log) prints an empty array.
web3.eth.getPendingTransactions().then(console.log)No errors are generated.
The empty array isn't a wrong return value. As it looks like is Infura not providing this feature.
@nivida Actually I get an empty array using my private node, while I get null using Infura.
@nivida same issue here. Local node, getting empty array. This should be reopened
Same
Same issue.
Same issue. Personal local node, got empty array
web3.js: 1.3.1
nodejs: 12.18.3
ethereum node: 1.9.24-stable
Any tips?
Most helpful comment
@nivida same issue here. Local node, getting empty array. This should be reopened