Skip to main content

How do I tell which bridge a Route response selected?

Read the Route hop where action is bridge and use its protocol field. bridgingEstimates also includes the protocol name and estimated delivery time. Do not hardcode a provider.

J
Written by Javier Diaz

Read the Route hop where action is "bridge" and use its protocol field. bridgingEstimates also includes the protocol name and estimated delivery time. Do not hardcode a provider.

Definition

On a Route request, Enso can select a documented bridge automatically. The quote tells you which path it selected. A Bundle is different: you already chose the protocol on the bridge action.

How it works

  • After the Route response arrives, find the entry in route with action === "bridge".

  • Read that hop’s protocol field and show it, or use it only to choose the matching status endpoint later.

  • Also read bridgingEstimates for the protocol name and estimatedSeconds.

  • After submission, poll GET /api/v1/bridge/route for overall status. Protocol-specific check endpoints are listed in the Bridge Status docs if you need provider detail.

  • If you must specify the provider or a callback, use the Bundle API instead of trying to pin a provider on a Route request.

How Enso does this

Bridge Transaction Status documents this extraction. Live provider names and endpoints change with coverage; this article does not list them. See also Crosschain Routing.

FAQ

Can I choose the bridge on a Route request?

Route automatically selects the path. To specify a provider or attach a callback, use Bundle.

Should I persist the protocol name from the quote?

Yes, store it with the source txHash so you can display the path and, if needed, call the correct status endpoint later. Still confirm against the live quote and docs.

Related articles

  • Which bridges does a cross-chain Enso route use?

  • What is bridgingEstimates?

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

  • How do I poll bridge status without hitting rate limits?

  • How do I attach destination actions after a bridge?

Sources

Did this answer your question?