3

I'm using Ropsten (revival) testnet with geth. I can see that all blocks are the same as https://ropsten.etherscan.io/ But I cannot see the pending transactions.

From https://ropsten.etherscan.io/txsPending there are about 16 pending transactions but when I do

> eth.pendingTransactions

with geth, I get and empty list: []

How can I get the list of pending transactions ?

1 Answer 1

4

eth.pendingTransactions only lists the transactions that you have issued. If you want to look at pending transactions for the whole network, check out txpool

Specifically, txpool.inspect gives you a nice shorthand view. From there you can use eth.getTransaction(txid) for any individual transaction that you want to know more about.

1
  • Any hint how to filter/get transactions only for specific pair (pool) i.e. mycoin/bnb ?
    – T.Todua
    Nov 30, 2021 at 20:06

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.