POST
/
v2
/
fungible
/
route
curl --request POST \
  --url https://api.skip.build/v2/fungible/route \
  --header 'Content-Type: application/json' \
  --data '{
  "amount_in": "1000000",
  "source_asset_denom": "uusdc",
  "source_asset_chain_id": "axelar-dojo-1",
  "dest_asset_denom": "uatom",
  "dest_asset_chain_id": "cosmoshub-4",
  "cumulative_affiliate_fee_bps": "0",
  "allow_multi_tx": true
}'

Body

application/json
amount_in
string

Amount of source asset to be transferred or swapped. Only one of amount_in and amount_out should be provided.

amount_out
string

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.

source_asset_denom
string

Denom of the source asset

source_asset_chain_id
string

Chain-id of the source asset

dest_asset_denom
string

Denom of the destination asset

dest_asset_chain_id
string

Chain-id of the destination asset

cumulative_affiliate_fee_bps
string | null

Cumulative fee to be distributed to affiliates, in bps (optional)

swap_venues
object[]

Swap venues to consider, if provided (optional)

allow_multi_tx
boolean

Whether to allow route responses requiring multiple transactions

allow_unsafe
boolean

Toggles whether the api should return routes that fail price safety checks.

bridges
enum<string>[]

Array of bridges to use

Available options:
IBC,
AXELAR,
CCTP,
HYPERLANE
smart_relay
boolean

Indicates whether this transfer route should be relayed via Skip's Smart Relay service - true by default.

smart_swap_options
object
allow_swaps
boolean

Whether to allow swaps in the route

Response

200 - application/json
amount_in
string

Amount of source asset to be transferred or swapped

amount_out
string

Amount of destination asset out

chain_ids
string[]

Chain-ids of all chains of the transfer or swap, in order of usage by operations in the route

required_chain_addresses
any

All chain-ids that require an address to be provided for, in order of usage by operations in the route

dest_asset_chain_id
string

Chain-id of the destination asset

dest_asset_denom
string

Denom of the destination asset

does_swap
boolean

Whether this route performs a swap

estimated_amount_out
string

Amount of destination asset out, if a swap is performed

operations
object[]

Array of operations required to perform the transfer or swap

source_asset_chain_id
string

Chain-id of the source asset

source_asset_denom
string

Denom of the source asset

swap_venue
object

Swap venue on which the swap is performed, if a swap is performed

txs_required
integer

Number of transactions required to perform the transfer or swap

usd_amount_in
string

Amount of the source denom, converted to USD value

usd_amount_out
string

Amount of the destination denom expected to be received, converted to USD value

swap_price_impact_percent
string | null

Price impact of the estimated swap, if present. Measured in percentage e.g. "0.5" is .5%

warning
object | null

Indicates if the route is unsafe due to poor execution price or if safety cannot be determined due to lack of pricing information

estimated_fees
object[]

Indicates fees incurred in the execution of the transfer

estimated_route_duration_seconds
integer

The estimated time in seconds for the route to execute