1

From some version of Parity, it began to start like this

enter image description here

And now, when i try to get all pending transactions from the whole pool, i'm getting only these local. But i need to get ALL as earlier. How to do it?

web3.eth.subscribe('pendingTransactions', (e, r) => {
if (!e) {
    console.log(r);
}

});

1 Answer 1

-1

pendingTransactions will only return the pending txs for your addresses.

If you want to get all unmined transactions on the node, you want the txpool_contents API.

2
  • Thx. But before it returned all unmined transactions. What has changed?
    – Yuuuupy
    Commented Sep 8, 2018 at 15:51
  • txpool_contents is only for geth, question is for parity
    – Daithí
    Commented Apr 19, 2019 at 21:38

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.