I'd like to get pending transactions information without running my own node. Is there any way to do that?

Something like this would work too, but they only seem to provide a fraction of the pending transactions they see.

  • Are you looking for that: etherscan.io/txsPending ? Nov 12, 2017 at 9:37
  • That would be perfect if I could access it through their API. Nov 12, 2017 at 13:13
  • I just saw that your post title includes web3. You cannot use web3 without having a node running. Nov 13, 2017 at 1:04
  • I've been using web3 with a third party (infura) node, as per the title. Most functionalities work, but not the txpool features, as it returns: "HTTPError: 405 Client Error: Method Not Allowed for url: mainnet.infura.io/<ClientID>" Nov 13, 2017 at 5:05
  • Maybe you should ask the Infura community. Nov 13, 2017 at 5:11

3 Answers 3


The standard Infura endpoint does not allow you to do that. I would suggest to use Chainstack, you can create a free node and allows you to do it. I have a repo showing exactly that in python using web3.py Find it here

This is the main code to retrieve the hash of pending transactions in web3.py

# retrive pending transactions hash
pending_tx_filter = web3.eth.filter('pending')
pending_tx = pending_tx_filter.get_new_entries()     # this is a list object

# loop through the list of transcations and displays the tx hash
for hash in pending_tx:
    print('Hash of a Pending Transaction:' , web3.toHex(hash))

You can use this tool to get a visualisation of pending transaction. There is not API however.



I've been creating "work-around" for this, but in the meanwhile I saw this - https://www.shawntabrizi.com/ethereum/using-web3-js-1-0-subscribe-and-infura-websockets-to-visualize-ethereum-transactions/ ( haven't tried it, yet ). Tell me if it is of any help :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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