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.
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.Sign up to join this community
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 :)