Compute Route
This is the first step when bridging tokens between chains. Call this endpoint with your source and destination assets to find the optimal transfer route. The response includes the expected output amount, USD value estimates, and an ordered list of operations.
After receiving a route, pass the full response (including operations) to the Generate Transaction endpoint (POST /v2/fungible/msgs) to get signable transaction messages you can broadcast.
If the route involves an IBC transfer between the Initia L1 chain and an external Cosmos chain, the endpoint also checks that the transfer fits within the current IBC rate-limit capacity. When the requested amount exceeds the remaining send or receive capacity, the request is rejected with a 400 error whose message reports the remaining capacity in human-readable units.
Request body
Response
Successful response
Changes
Changed in 3 of the 6 revisions of this API.1012
- ○
added the non-success response with the status
400response-non-success-status-added
- ○
- ○
added the optional property
chain_idsto the response with the200statusresponse-optional-property-added
- ○
added the optional property
does_swapto the response with the200statusresponse-optional-property-added
- ○
added the optional property
estimated_amount_outto the response with the200statusresponse-optional-property-added
- ○
added the optional property
estimated_feesto the response with the200statusresponse-optional-property-added
- ○
added the optional property
estimated_route_duration_secondsto the response with the200statusresponse-optional-property-added
- ○
added the optional property
extra_warningsto the response with the200statusresponse-optional-property-added
- ○
added the optional property
swap_price_impact_percentto the response with the200statusresponse-optional-property-added
- ○
added the optional property
swap_venueto the response with the200statusresponse-optional-property-added
- ○
added the optional property
swap_venuesto the response with the200statusresponse-optional-property-added
- ○
added the optional property
txs_requiredto the response with the200statusresponse-optional-property-added
- ○
- ●
removed the optional property
chain_idsfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
does_swapfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
estimated_amount_outfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
estimated_feesfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
estimated_route_duration_secondsfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
extra_warningsfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
swap_price_impact_percentfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
swap_venuefrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
swap_venuesfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
txs_requiredfrom the response with the200statusresponse-optional-property-removed
- ○
removed the non-success response with the status
400response-non-success-status-removed
- ●