Post /v2/fungible/route
This supports cross-chain actions among EVM chains, Cosmos chains, and between them. Returns the sequence of transfers and/or swaps to reach the given destination asset from the given source asset, along with estimated amount out. Commonly called before /msgs to generate route info and quote.
Body
Amount of source asset to be transferred or swapped. Only one of amount_in and amount_out should be provided.
Amount of destination asset to receive. Only one of amount_in and amount_out should be provided. If amount_out is provided for a swap, the route will be computed to give exactly amount_out.
Denom of the source asset
Chain-id of the source asset
Denom of the destination asset
Chain-id of the destination asset
Cumulative fee to be distributed to affiliates, in bps (optional)
Swap venues to consider, if provided (optional)
Whether to allow route responses requiring multiple transactions
Toggles whether the api should return routes that fail price safety checks.
Array of bridges to use
IBC
, AXELAR
, CCTP
, HYPERLANE
Indicates whether this transfer route should be relayed via Skip's Smart Relay service - true by default.
Whether to allow swaps in the route
Response
Amount of source asset to be transferred or swapped
Amount of destination asset out
Chain-ids of all chains of the transfer or swap, in order of usage by operations in the route
All chain-ids that require an address to be provided for, in order of usage by operations in the route
Chain-id of the destination asset
Denom of the destination asset
Whether this route performs a swap
Amount of destination asset out, if a swap is performed
Array of operations required to perform the transfer or swap
Chain-id of the source asset
Denom of the source asset
Swap venue on which the swap is performed, if a swap is performed
Number of transactions required to perform the transfer or swap
Amount of the source denom, converted to USD value
Amount of the destination denom expected to be received, converted to USD value
Price impact of the estimated swap, if present. Measured in percentage e.g. "0.5" is .5%
Indicates if the route is unsafe due to poor execution price or if safety cannot be determined due to lack of pricing information
Indicates fees incurred in the execution of the transfer
The estimated time in seconds for the route to execute