Categories
Cryptocurrency Ethereum Mastering Development

Getting txpool with python web3 and infura

I am trying to monitor pending transactions with python web3 and an infura node. I am currently using web3.eth.getBlock(block_identifier=’pending’, full_transactions=True) on a loop to fetch pending transactions, but it seems to be missing some transactions and completely ignores transactions with lower gas prices. I have tried using w3.eth.filter(‘pending’) but that just gives an error ValueError: […]