Skip to main content

Why did the transaction fail on-chain after I got a quote?

A quote can succeed even if the wallet later lacks funds, allowance, or gas, or if the quote went stale. Rebuild the quote and recheck balances and approvals; do not edit the returned transaction.

J
Written by Javier Diaz

A successful quote does not guarantee on-chain execution. The API can return a route even when the wallet later lacks funds, allowance, or gas, or when the quote has gone stale. Rebuild the quote and recheck balances and approvals. Do not edit the returned transaction.

Definition

The Route or Bundle response is a simulated, signer-ready transaction at the time of the quote. Execution happens later, in the user’s wallet or your signer stack, against current balances and market conditions.

How it works

Common reasons a quoted transaction later fails:

  • The wallet does not have enough of the input token or native gas token. The API may still return a route.

  • An ERC-20 allowance is too low, or the approval was skipped.

  • Slippage or minAmountOut protection was hit as the market moved.

  • The quote is stale. Rebuild it; do not modify tx.to, tx.data, or tx.value.

How Enso does this

Show the quote (amountOut, minimum output, gas, and any approval). Submit approvals or preTransactions first when the router strategy spends an ERC-20. Then submit the returned tx as-is. If execution fails, refresh balances, fix allowance or funds, and request a new quote. See the FAQ and Core Concepts.

FAQ

Why did I get a route if the wallet is empty?

The API can still return a path. Execution fails if sufficient funds are not available at submit time.

Should I resend the same calldata?

No. Rebuild the quote so the path, amounts, and protection match current conditions.

Related articles

  • What if my quote expired?

  • What if token allowance is too low?

  • What if slippage is too tight and the swap reverts?

  • What if the user doesn’t have sufficient funds?

  • How do I submit Enso transaction data from my app?

Sources

Did this answer your question?