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: {'code': -32601, 'message': 'The method eth_newPendingTransactionFilter does not exist/is not available'}

Is there any way to access the full txpool on python with an infura node?

  • Did you find the solution? I'm trying to do the same.
    – barych
    Apr 5 at 16:09

Infura doesn't support TxPool https://github.com/INFURA/infura/issues/55. You can accomplish this by running your own node.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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