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
}'
{
  "amount_in": "1000000000000000000",
  "amount_out": "721110",
  "source_asset_denom": "polygon-native",
  "source_asset_chain_id": "137",
  "dest_asset_denom": "uosmo",
  "dest_asset_chain_id": "osmosis-1",
  "operations": [
    {
      "axelar_transfer": {
        "from_chain": "Polygon",
        "from_chain_id": "137",
        "to_chain": "osmosis",
        "to_chain_id": "osmosis-1",
        "asset": "wmatic-wei",
        "should_unwrap": false,
        "fee_amount": "335901477747718412",
        "usd_fee_amount": "0.27",
        "fee_asset": {
          "denom": "matic",
          "chain_id": "137",
          "origin_denom": "",
          "origin_chain_id": "",
          "trace": "",
          "is_cw20": false,
          "is_evm": true,
          "symbol": "MATIC",
          "name": "matic",
          "logo_uri": "https://raw.githubusercontent.com/cosmostation/chainlist/main/chain/polygon/asset/wmatic.png",
          "decimals": 18,
          "token_contract": ""
        },
        "is_testnet": false,
        "bridge_id": "AXELAR"
      },
      "tx_index": 0
    },
    {
      "swap": {
        "swap_in": {
          "swap_venue": {
            "name": "osmosis-poolmanager",
            "chain_id": "osmosis-1"
          },
          "swap_operations": [
            {
              "pool": "789",
              "denom_in": "ibc/AB589511ED0DD5FA56171A39978AFBF1371DB986EC1C3526CE138A16377E39BB",
              "denom_out": "uosmo"
            }
          ],
          "swap_amount_in": "664098522252281588",
          "price_impact_percent": "1.05"
        },
        "estimated_affiliate_fee": "0uosmo",
        "from_chain_id": "osmosis-1",
        "chain_id": "osmosis-1",
        "denom_in": "ibc/AB589511ED0DD5FA56171A39978AFBF1371DB986EC1C3526CE138A16377E39BB",
        "denom_out": "uosmo"
      },
      "tx_index": 0
    }
  ],
  "chain_ids": [
    "axelar-dojo-1",
    "osmosis-1",
    "cosmoshub-4"
  ],
  "required_chain_addresses": [
    "axelar-dojo-1",
    "osmosis-1",
    "cosmoshub-4"
  ],
  "does_swap": true,
  "estimated_amount_out": "721110",
  "swap_venue": {
    "name": "osmosis-poolmanager",
    "chain_id": "osmosis-1"
  },
  "txs_required": 1,
  "usd_amount_in": "2000.01",
  "usd_amount_out": "2005.23",
  "swap_price_impact_percent": "1.05",
  "estimated_fees": [],
  "estimated_route_duration_seconds": 300
}

Body

application/json

Response

200
application/json
Swap and transfer route summary & quote

The response is of type object.