Skip to main content

Why did useIntentAddress return 400?

Setting useIntentAddress to true with options an intent cannot encode returns HTTP 400. Those options include slippage=0, ignoreStandards, allowAsync=true, and certain ignoreAggregators values.

J
Written by Javier Diaz

Setting useIntentAddress to true with options an intent cannot encode returns HTTP 400. Documented incompatible options include slippage=0, ignoreStandards, allowAsync=true, and ignoreAggregators values an intent cannot encode.

Definition

useIntentAddress can allow or require an intent route. Forcing true tells the API it must use an intent. If the rest of the request cannot be encoded as an intent, the call is rejected rather than silently falling back.

How it works

  • If you omitted the flag and received a callback route, that is expected when Enso finds no intent or the request uses an option an intent cannot encode. That fallback is not a 400.

  • If you set useIntentAddress to true and also set one of those incompatible options, expect HTTP 400.

  • To allow an intent when possible, omit the flag.

  • To force a callback route, set useIntentAddress to false instead of true.

  • After you change the flags, request a new quote and review the response (intent appears on an intent route) before the user signs.

How Enso does this

See Crosschain Routing. Same-chain routes ignore useIntentAddress. A 400 here is a request-shape error, not a bridge-status failure.

FAQ

Should I remove slippage entirely to make the intent work?

No. slippage=0 is one of the options that forces a callback route or, with useIntentAddress: true, a 400. Use a nonzero slippage the user has accepted, or force a callback route with false.

Does this 400 mean the tokens already moved?

No. The Route request failed before you had a tx to submit.

Related articles

  • What is useIntentAddress?

  • How do I force a bridge callback route instead of an intent route?

  • What is an intent route in Enso?

  • Intent route vs bridge callback: which should I use?

  • How do I set slippage on an Enso route?

Sources

Did this answer your question?