I am playing with smart contracts in code, sending/receiving transactions to/from it. Some transactions with lower gasPrice are stuck in a pending state. However, having same nonce with a higher gasPrice passed. Pending ones still pending and seems to be pending forever. How can I clear those or when will they discard, is there an amount of time to wait them to be discarded?

1 Answer 1


If a transaction with the same nonce has already been broadcast, then the others will be cleared from the tx pool.

This is a rule set by the clients that run nodes.

  • ok but when will this clearance process complete since the time last transaction occured with the same nonce? is there any amount of time?
    – gomozor
    Mar 2, 2020 at 10:50

Your Answer

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

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