How to Replace a Pending Matcha Swap Before Expiry
A replacement fee often needs to be roughly 10% higher than the original, though network demand sets the actual amount. For a standard EVM Matcha swap pending in your wallet, you can pay more to resend the same transaction or pay to cancel it; both use one nonce, so only one can confirm.
Why a swap stays pending
A pending transaction usually means its gas fee is too low for current network demand. Your wallet submitted it, but validators have not included it in a confirmed block. When the network gets busy, a fee that was adequate when you started the trade can become too low to attract processing.
Suppose you swap tokens on Ethereum and the transaction remains pending much longer than your usual swaps. First, open your wallet’s activity and make sure the transaction is still pending on the same network. If the wallet offers a transaction link, open it in the relevant block explorer to see its status and fee details. A slow status alone does not mean the trade failed or that the tokens have moved.
For a standard EVM transaction, your wallet assigns a nonce: a sequential number that identifies a transaction from your account. A replacement uses the same nonce as the pending transaction. When one transaction with that nonce confirms, the other can no longer confirm. That shared nonce is why you can try to speed up the trade or cancel it from your wallet.
What speed-up changes
Choose speed up if you still want the swap to execute under its original terms. Your wallet resends the same transaction data with a higher gas fee. The calldata—the instructions that specify the swap—stays the same, including the minimum amount you agreed to receive and the transaction deadline.
Approve the higher fee only if you are comfortable paying it. The replacement has to exceed the original fee, and many nodes require roughly a 10% increase, but that is only a typical guide. Current network demand determines the fee that is likely to get accepted; your wallet may suggest an amount based on current conditions. You also need enough of the network’s native gas token to cover the higher fee.
A higher fee helps the transaction compete for inclusion; it does not change the swap’s protections. If the replacement confirms after its deadline, or the trade can no longer meet its minimum received amount because the price moved beyond your slippage setting, the swap reverts. A reverted transaction still uses gas, so you can pay for the attempt without receiving the swapped tokens.
In the Ethereum example, speed up is a reasonable choice if you still accept the quoted trade and want to give it a better chance of confirming. After approving the replacement, watch its status in the wallet or explorer. The pending entry may update, or the explorer may show the replacement transaction separately.
When to cancel instead
Choose cancel if you no longer want the original trade to execute at its existing terms. Your wallet sends an empty transaction from the same account with the same nonce and a higher fee. Because that transaction contains no swap instructions, it uses the nonce to stop the pending swap from being the one that confirms.
Cancellation is a race. If the original swap confirms before the empty replacement, the swap happens; submitting a cancellation does not undo a transaction that has already confirmed. If the cancellation confirms first, the original can no longer execute with that nonce. The cancellation itself costs a small network fee, but it can prevent an old trade from executing when you would rather reassess the price or submit a fresh swap.
In the example, cancel if the market has moved and you would not accept the original minimum received amount or deadline anymore. Approve the replacement fee, then wait for a confirmed result. If the swap wins the race, review the completed trade before deciding whether to make another one. If cancellation wins, the original swap is stopped and you can reconsider the trade from the beginning.
Verify the final status
Stop when one transaction for that nonce is confirmed and the competing transaction is marked replaced or dropped. In your wallet, open the transaction activity and follow its explorer record if the label is unclear. An explorer may keep both entries visible: the confirmed transaction has a successful receipt, while the other cannot also confirm using the same nonce. If neither has confirmed, the outcome is still pending.
These replacement steps apply to standard swaps sent as EVM transactions, including on Ethereum, Arbitrum, and Polygon. They do not apply in the same way to gasless orders, which settle or expire according to their order conditions, or to Solana swaps, which do not use the EVM nonce replacement mechanism. For the EVM case, the Matcha swap service is useful background because understanding that a swap is a routed trade helps you see why the replacement keeps the original trade instructions and terms. Once the explorer shows which transaction confirmed, you can tell whether the trade completed or was stopped.
Comments
Post a Comment