Skip to main content

What if my quote expired?

Do not edit or resubmit a stale Enso transaction. Request a new Route or Bundle quote and submit the new tx.to, tx.data, and tx.value as-is.

J
Written by Javier Diaz

If a quote has expired or become stale, do not edit the returned transaction or resubmit the old calldata. Request a new Route or Bundle quote and submit the new tx.to, tx.data, and tx.value as-is.

Definition

A quote is a simulated path and a signer-ready transaction at a point in time. Prices, liquidity, gas, and fee configuration can change. Submitting outdated calldata can fail or settle at a worse result than the user approved.

How it works

  1. Treat the quote as valid only until the user is ready to sign.

  2. If signing is delayed, or execution fails after a delay, request a new quote with the same intent.

  3. Show the new expected output, minimum output, and gas, and collect a fresh signature.

  4. Never patch amounts, targets, or calldata by hand.

Public docs tell you to respect quote expiry and to rebuild an expired quote rather than modifying the returned transaction. They do not publish a single global time-to-live for every quote.

How Enso does this

Call POST https://api.enso.build/api/v1/shortcuts/route or /shortcuts/bundle again. Submit the new tx unchanged. Fee-configuration changes also apply only to newly quoted transactions; already-quoted transactions keep the fee they were quoted with. See the FAQ and Fees.

FAQ

Can I change minAmountOut on the returned calldata?

No. Choose slippage or minAmountOut on a new request. Do not rewrite tx.

Does this apply to cross-chain routes too?

Yes. Rebuild the source-chain quote if it is stale before the user signs. After a source transaction is already submitted, track destination delivery with Bridge Status instead of requoting that hash.

Related articles

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

  • What is slippage in DeFi?

  • How do I show a quote before the user signs?

  • What happens if a cross-chain callback fails?

  • Can I use both slippage and minAmountOut?

Sources

Did this answer your question?