DEV Community

Mack Schneider
Mack Schneider

Posted on

How to Recover a SushiSwap Swap After Rejecting a Signature

You can retry a SushiSwap swap after rejecting a wallet signature if that request never sent a transaction to the network. To make a new attempt, use SushiSwap to swap the tokens again after checking the original attempt. The rejected request costs no gas, but an earlier approval or submitted swap may still be pending.

Did the rejected signature reach the chain?

Usually it did not: EIP-1193 defines error 4001 as a user-rejected wallet request. Rejecting a message signature supplies no signature for the proposed swap, and rejecting a transaction confirmation prevents that transaction from being sent. A separate token approval you confirmed earlier can still proceed, however.

Check your wallet activity and the block explorer for the network you used. A transaction hash is the useful dividing line; an exchange page that still says “pending” cannot establish what happened on-chain.

  • No hash: The rejected request has no transaction to wait for or cancel.
  • Pending hash: A transaction was sent but has not been confirmed; identify whether it is an approval or the swap.
  • Confirmed hash: Check its receipt. Success may mean the trade happened; failure means it did not, although execution can still cost gas.

Retry the swap in order

Start a fresh swap only after you have accounted for any transaction already sent. Work through these steps in order so a delayed confirmation does not turn your retry into a second trade.

  1. Check the attempted trade in your wallet activity and search your address on the correct network’s block explorer. Look for both approval and swap transactions around the time you rejected the prompt; either can have its own hash.
  2. Set your wallet to the account and network holding the input token. Identical token tickers on different EVM networks do not mean you can spend one network’s balance on another.
  3. Check the input token’s allowance for the proposed spender. A rejected approval transaction leaves the allowance unchanged, while an earlier confirmed approval may still be usable. If you rejected a permit-style message, that rejection created no new signed authorization.
  4. Recreate the token pair and amount, then review a fresh quote. SushiSwap draws on available AMM liquidity, so the expected output can change while you wait. Say 100 USDC now quotes 99.8 DAI: at 0.5% slippage tolerance, the minimum received is about 99.3 DAI.
  5. Read each new wallet request before accepting it. Check the account, network, amount and any approval spender, then ensure you have the network’s native token for gas. An accepted approval is not proof that the separate swap transaction was sent.
  6. Submit the swap once and record its transaction hash. Check the receipt on that network’s explorer before making another attempt; Ethereum.org notes that a transaction can consume gas even when its execution fails.

What if the retry remains pending or fails?

If the swap hash remains pending, wait or use your wallet’s transaction replacement options before creating another trade. If an approval confirms but no swap hash appears, the exchange still needs a separate swap request.

If the swap receipt shows failure, review the new quote and minimum received before retrying; a price move beyond your slippage tolerance can cause a revert. Retry only when earlier transactions are resolved and the fresh quote and wallet request still match the trade you intend.

Top comments (0)