Post /v2/fungible/msgs_direct
This supports cross-chain actions among EVM chains, Cosmos chains, and between them. Returns minimal number of messages required to execute a multi-chain swap or transfer. This is a convenience endpoint that combines /route and /msgs into a single call.
Body
Denom of the source asset
Chain-id of the source asset
Denom of the destination asset
Chain-id of the destination asset
Amount of source asset to be transferred or swapped. If this is a swap, only one of amount_in and amount_out should be provided.
Amount of destination asset out. If this is a swap, 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.
Map of chain-ids to receipient and/or sender address for each chain in the path. Since the path is not known to the caller beforehand, the caller should attempt to provide addresses for all chains in the path, and the API will return an error if the path cannot be constructed.
Swap venues to consider, if provided (optional)
Percent tolerance for slippage on swap, if a swap is performed
Number of seconds for the IBC transfer timeout, defaults to 5 minutes
Map of chain-ids to arrays of affiliates. Since cumulative_affiliate_fee_bps must be provided to retrieve a route, and the swap chain is not known at this time, all chains must have the same cumulative_affiliate_fee_bps otherwise the API will return an error.
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
Whether to allow swaps in the route
Whether to enable gas warnings for intermediate and destination chains