200: OK The response is an array of objects. Currently, we only support Thorchain for native UTXO assets and Cosmos trade, so this array will have only one item for Thorchain.
Copy {
"srcTradeList": [
{
"fee": "0",
"toTokenAmountWithoutFee": "100895388037136513049",
"fromTokenAmount": "100000000000000000000",
"toTokenAmount": "100895388037136513049",
"deltaAmount": "100695474535918293668",
"tokenFrom": {
"name": "USDC",
"symbol": "USDC",
"decimals": 18,
"contractAddress": "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
"priceInUsd": 0.9999971484215191,
"chainId": 56,
"buyTax": 0,
"sellTax": 0
},
"tokenTo": {
"name": "Tether USDt",
"symbol": "USDT",
"decimals": 18,
"contractAddress": "0x55d398326f99059fF775485246999027B3197955",
"priceInUsd": 1.000470720675468,
"chainId": 56,
"buyTax": 0,
"sellTax": 0
},
"tradeType": 0,
"protocol": [
{
"name": "PancakeSwap Stable",
"logo": "https://pancakeswap.finance/favicon.ico",
"route": [
"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
"0x55d398326f99059fF775485246999027B3197955"
],
"percentage": 100
}
],
"transactionData": {
"info": {
"feePercent": 0,
"sharePercent": 0,
"srcToken": "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
"dstToken": "0x55d398326f99059fF775485246999027B3197955",
"deadline": 1723712648,
"slippage": 0.002,
"tokenHasTaxes": false,
"path": [
"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
"0x55d398326f99059fF775485246999027B3197955"
],
"tradeType": 0,
"amountIn": "100000000000000000000",
"amountOutMin": "99756837107886218311",
"actualQuote": "99956750609104427165",
"uuid": "UNIZEN-CLI",
"apiId": "17",
"userPSFee": 0
},
"call": [
{
"targetExchange": "0xC6665d98Efd81f47B03801187eB46cbC63F328B0",
"targetExchangeID": "pancakeStable",
"sellToken": "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
"buyToken": "0x55d398326f99059fF775485246999027B3197955",
"amountDelta": "99756837107886218311",
"amount": "100000000000000000000",
"data": "0xa6cbf4170000000000000000000000008ac76a51cc950d9822d68b83fe1ad97b32cd580d00000000000000000000000055d398326f99059ff775485246999027b31979550000000000000000000000000000000000000000000000056bc75e2d6310000000000000000000000000000000000000000000000000000568677ad0b4105c470000000000000000000000000000000000000000000000000000000000000000"
}
]
},
"nativeValue": "0",
"contractVersion": "v1",
"gasPrice": "1000000000"
},
],
"dstTradeList": [],
"srcTrade": {
"fee": "0",
"toTokenAmountWithoutFee": "100895388037136513049",
"fromTokenAmount": "100000000000000000000",
"toTokenAmount": "100895388037136513049",
"deltaAmount": "100695474535918293668",
"tokenFrom": {
"name": "USDC",
"symbol": "USDC",
"decimals": 18,
"contractAddress": "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
"priceInUsd": 0.9999971484215191,
"chainId": 56,
"buyTax": 0,
"sellTax": 0
},
"tokenTo": {
"name": "Tether USDt",
"symbol": "USDT",
"decimals": 18,
"contractAddress": "0x55d398326f99059fF775485246999027B3197955",
"priceInUsd": 1.000470720675468,
"chainId": 56,
"buyTax": 0,
"sellTax": 0
},
"tradeType": 0,
"protocol": [
{
"name": "PancakeSwap Stable",
"logo": "https://pancakeswap.finance/favicon.ico",
"route": [
"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
"0x55d398326f99059fF775485246999027B3197955"
],
"percentage": 100
}
],
"transactionData": {
"info": {
"feePercent": 0,
"sharePercent": 0,
"srcToken": "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
"dstToken": "0x55d398326f99059fF775485246999027B3197955",
"deadline": 1723712648,
"slippage": 0.002,
"tokenHasTaxes": false,
"path": [
"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
"0x55d398326f99059fF775485246999027B3197955"
],
"tradeType": 0,
"amountIn": "100000000000000000000",
"amountOutMin": "99756837107886218311",
"actualQuote": "99956750609104427165",
"uuid": "UNIZEN-CLI",
"apiId": "17",
"userPSFee": 0
},
"call": [
{
"targetExchange": "0xC6665d98Efd81f47B03801187eB46cbC63F328B0",
"targetExchangeID": "pancakeStable",
"sellToken": "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
"buyToken": "0x55d398326f99059fF775485246999027B3197955",
"amountDelta": "99756837107886218311",
"amount": "100000000000000000000",
"data": "0xa6cbf4170000000000000000000000008ac76a51cc950d9822d68b83fe1ad97b32cd580d00000000000000000000000055d398326f99059ff775485246999027b31979550000000000000000000000000000000000000000000000056bc75e2d6310000000000000000000000000000000000000000000000000000568677ad0b4105c470000000000000000000000000000000000000000000000000000000000000000"
}
]
},
"nativeValue": "0",
"contractVersion": "v1",
"gasPrice": "1000000000"
},
"dstTrade": {
"toTokenAmount": "161293",
"deltaAmount": "161293",
"tokenTo": {
"name": "BTC",
"symbol": "BTC",
"decimals": 8,
"contractAddress": "0x0000000000000000000000000000000000000000",
"chainId": -3980891822,
"priceInUsd": 60914.241350926735,
"buyTax": 0,
"sellTax": 0
}
},
"transactionData": {
"inbound_address": "0x9c4c8387b447364e788acaa36ed921c0c6195507",
"outbound_delay_blocks": 0,
"outbound_delay_seconds": 0,
"fees": {
"asset": "BTC.BTC",
"affiliate": "414",
"outbound": "3641",
"liquidity": "165",
"total": "4220",
"slippage_bps": 9,
"total_bps": 249
},
"slippage_bps": 9,
"streaming_slippage_bps": 9,
"router": "0xb30ec53f98ff5947ede720d32ac2da7e52a5f56b",
"expiry": 1723627149,
"warning": "Do not cache this response. Do not send funds after the expiry.",
"notes": "Base Asset: Send the inbound_address the asset with the memo encoded in hex in the data field. Tokens: First approve router to spend tokens from user: asset.approve(router, amount). Then call router.depositWithExpiry(inbound_address, asset, amount, memo, expiry). Asset is the token contract address. Amount should be in native asset decimals (eg 1e18 for most tokens). Do not send to or from contract addresses.",
"recommended_min_amount_in": "5831301363",
"recommended_gas_rate": "7",
"gas_rate_units": "gwei",
"memo": "=:BTC.BTC:bc1qdp2c5hsk9lwldum5vm2xx65dxacwzxxyy2y4wt::zcx-com:25",
"expected_amount_out": "161293",
"expected_amount_out_streaming": "",
"max_streaming_quantity": 0,
"streaming_swap_blocks": 0,
"amount": "100895388037136513049",
"tradeProtocol": "CROSS_CHAIN_THORCHAIN",
"params": {
"uuidPercentage": 0,
"sharePercent": 0
},
"call": [
{
"targetExchange": "0xC6665d98Efd81f47B03801187eB46cbC63F328B0",
"targetExchangeID": "pancakeStable",
"sellToken": "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
"buyToken": "0x55d398326f99059fF775485246999027B3197955",
"amountDelta": "99756837107886218311",
"amount": "100000000000000000000",
"data": "0xa6cbf4170000000000000000000000008ac76a51cc950d9822d68b83fe1ad97b32cd580d00000000000000000000000055d398326f99059ff775485246999027b31979550000000000000000000000000000000000000000000000056bc75e2d6310000000000000000000000000000000000000000000000000000568677ad0b4105c470000000000000000000000000000000000000000000000000000000000000000"
}
],
"info": {
"feePercent": 0,
"sharePercent": 0,
"srcToken": "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
"dstToken": "0x55d398326f99059fF775485246999027B3197955",
"deadline": 1723712648,
"slippage": 0.002,
"tokenHasTaxes": false,
"path": [
"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
"0x55d398326f99059fF775485246999027B3197955"
],
"tradeType": 0,
"amountIn": "100000000000000000000",
"amountOutMin": "99756837107886218311",
"actualQuote": "99956750609104427165",
"uuid": "UNIZEN-CLI",
"apiId": "17",
"userPSFee": 0,
"memo": "=:BTC.BTC:bc1qdp2c5hsk9lwldum5vm2xx65dxacwzxxyy2y4wt::zcx-com:25",
"vault": "0x9c4c8387b447364e788acaa36ed921c0c6195507"
}
},
"nativeValue": "0",
"nativeFee": "0",
"tradeProtocol": "CROSS_CHAIN_THORCHAIN",
"sourceChainId": 56,
"destinationChainId": -3980891822,
"contractVersion": "v1",
"providerInfo": {
"name": "Thorchain",
"logo": "https://thorchain.org/images/logos/full-dark.png",
"website": "https://thorchain.org/",
"docsLink": "https://thorchain.org/integrate",
"description": "THORChain is a network that facilitates native asset settlement between Bitcoin, Ethereum, BNB Chain, Avalanche, Cosmos Hub, Dogecoin, Bitcoin Cash & Litecoin"
},
"tradeParams": {
"sender": "0x2472d3EF4bF71af00c3dE490a5a53A99CbAC0791",
"receiver": "bc1qdp2c5hsk9lwldum5vm2xx65dxacwzxxyy2y4wt",
"tokenIn": "0x55d398326f99059ff775485246999027b3197955",
"tokenOut": "0x0000000000000000000000000000000000000000",
"amount": "100895388037136513049",
"srcChainId": 56,
"dstChainId": -3980891822,
"inNative": true,
"outNative": true,
"deadline": 1723627149,
"tokenInfo": [
{
"name": "USDT",
"symbol": "USDT",
"decimals": 18,
"contractAddress": "0x55d398326f99059ff775485246999027b3197955",
"chainId": 56,
"buyTax": 0,
"sellTax": 0
},
{
"name": "BTC",
"symbol": "BTC",
"decimals": 8,
"contractAddress": "0x0000000000000000000000000000000000000000",
"chainId": -3980891822,
"priceInUsd": 60914.241350926735,
"buyTax": 0,
"sellTax": 0
}
]
}
}