Skip to main content

Intent route vs bridge callback: which should I use?

Use an intent route when Route can run destination steps through a keeper. Use a bridge callback when you must specify the destination actions yourself, or when you set useIntentAddress to false.

J
Written by Javier Diaz

Use an intent route when the Route API can run destination steps through an Enso keeper. Use a bridge callback when you must specify the destination actions yourself, or when you set useIntentAddress to false.

Definition

Both patterns bridge first and execute later; neither is atomic with the source-chain transfer. The difference is who composes the destination steps: a keeper following the intent, or the callback list you encoded.

How it works

  • Choose an intent route (the default when the flag is omitted and the keeper supports both chains) for a typical Route destination swap or deposit. The response includes an intent object, a keeper fee in metadata.bridgeFees, and amountOut net of that fee.

  • Choose a callback route when you need to write the action list, attach a specified bridge provider in a Bundle, or force Route to avoid an intent (useIntentAddress: false).

  • Start supported callbacks with an enso balance action and stay within the documented callback size and “up to 10 chained actions” limit.

  • Track intent completion with GET /api/v1/bridge/route, which becomes delivered only after the keeper executes.

  • Solana destinations support neither destination callbacks nor intent-style destination execution.

How Enso does this

See Crosschain Routing. This comparison is criteria-based and does not rank named bridges. Some request options cannot be encoded as an intent and will return a callback route, or HTTP 400 if you forced useIntentAddress: true.

FAQ

Is one of these atomic and the other not?

No. Destination failure cannot revert a finalized source-chain bridge in either model.

Can a Route request still use a callback?

Yes, when you set useIntentAddress to false, or when the API cannot encode an intent for the request.

Related articles

  • What is an intent route in Enso?

  • What is a bridge callback?

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

  • When should I use Route vs Bundle for a cross-chain flow?

  • Are cross-chain transactions atomic?

Sources

Did this answer your question?