Can I retry a swap before it confirms: how replacement works
Can I retry a swap before the first transaction confirms? Yes, if your wallet supports a same-nonce replacement; inspect its action and fees before signing.
The Top Crypto Editors 2 min read
Yes, you can try to replace a pending Matcha swap if your wallet supports it, but wait or replace the first transaction rather than submitting a second independent swap. On Ethereum, each account’s transactions use sequential nonces.
- A replacement generally uses the pending transaction’s nonce and must meet the network’s fee rules.
- Whichever transaction confirms first uses that nonce; the other cannot execute with it.
- Review the replacement’s action, tokens and minimum output before signing.
If the swap failed instead of remaining pending, the next decision may involve slippage or waiting. Matcha swap readers can get background on Matcha swap failure next steps, which covers that separate situation.
A same-nonce replacement competes for confirmation
A replacement transaction uses the same nonce as the pending transaction, so the two compete for inclusion under the network’s fee rules. Wallets may offer “speed up” to resubmit the original action with a higher fee. Exact replacement requirements vary by wallet and network.
A replacement can also change the action, not just the fee. A wallet may offer a cancel transaction, or let you submit a different transaction with that nonce. Before signing, read the confirmation details: make sure you understand what transaction will execute, which token it involves, and what minimum output it shows.
Submitting a separate transaction with nonce 13 does not replace a pending transaction at nonce 12. It is a distinct transaction, and the pending nonce 12 still needs to be resolved before the next sequential transaction can proceed.
Nonce 12 shows why a second swap can be risky
Say your wallet shows a pending swap at nonce 12. You choose speed up, and the wallet prepares a replacement at nonce 12. If the original confirms first, the replacement cannot also execute with nonce 12. If the replacement confirms first, the original becomes unusable with that nonce.
That means a replacement is a race, and the result depends on which transaction confirms first. If you submit another swap as a separate transaction, it may leave you with an additional trade to track rather than resolving the pending one.
For a pending Matcha swap, wait if you can leave the trade unresolved; use speed up or another same-nonce replacement only after checking its full transaction details. Then sign only the action you intend to take.