Skip to main content

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

Set useIntentAddress to false on the Route request. For a fully specified destination action list, use a Bundle bridge action with a callback that starts with a balance check.

J
Written by Javier Diaz

Set useIntentAddress to false on the Route request to get a bridge callback route instead of an intent route. For a fully specified destination action list, use a Bundle bridge action with a callback that starts with a balance check.

Definition

An intent route lets a keeper run destination steps after bridging to a one-time intent address. A callback route encodes those destination actions in the bridge callback. Forcing a callback route is how you opt out of the default intent path on supported chains.

How it works

  • On POST /api/v1/shortcuts/route, include "useIntentAddress": false with the usual destinationChainId, assets, and slippage.

  • The API also returns a callback route when it cannot encode an intent (for example slippage=0, allowAsync=true, or when it finds no intent route).

  • Do not set useIntentAddress to true together with those incompatible options; that returns HTTP 400.

  • If you need to write the destination actions yourself, switch to POST /api/v1/shortcuts/bundle, start the callback with an enso balance action, and chain amounts with useOutputOfCallAt.

  • Callbacks are not available when Solana is the destination.

How Enso does this

See Crosschain Routing. A Bundle callback sequence is documented as a single sequence with up to 10 chained actions, and all supported callbacks must start with a balance check. Track either style of route with GET /api/v1/bridge/route.

FAQ

Will omitting useIntentAddress force a callback route?

No. Omitting it allows an intent route when the keeper supports both chains. Set false to force a callback route.

Can I force an intent route?

Setting useIntentAddress to true is possible, but it returns 400 with options an intent cannot encode. Prefer omitting the flag unless you know the request is intent-compatible.

Related articles

  • What is useIntentAddress?

  • Why did useIntentAddress return 400?

  • How do I attach destination actions after a bridge?

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

  • What is an intent route in Enso?

Sources

Did this answer your question?