Canceling transactions

I’ve been trying to implement canceling transaction functionality for Nethermind client.
Basically - sending the same transaction once again with an increased gas price and 0 value, however I’m getting an error:

{"jsonrpc":"2.0","id":"0x1","error":{"code":-32000,"message":"nonce too low"}}

Is it possible to “update” the transaction (e.g. increase gas price) using the same nonce, in order to cancel/boost pending transactions?


I just tested a couple replacement transactions and they have worked for me. Are you sure the transaction was still pending when you tried to replace it? You cannot replace a mined transaction. Trying to send a transaction with a nonce number that has already been mined will result in a “nonce too low” error. Is there anymore information you can provide?

1 Like

Thank you for the confirmation, you’re correct - I had to test it other way round and now it works as expected.

1 Like