curl --request POST \
--url https://api.dkit.xyz/v1/quote \
--header 'Content-Type: application/json' \
--data '
{
"sellAsset": "ETH.USDC-0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"sellAmount": "150",
"buyAsset": "ETH.ETH",
"slippage": 5,
"affiliate": "dz",
"affiliateFee": 88,
"includeTx": true,
"providers": [
"THORCHAIN"
],
"sourceAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb7",
"destinationAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb7"
}
'{
"quoteId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"routes": [
{
"providers": [
"THORCHAIN"
],
"sellAsset": "ETH.USDC-0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"sellAmount": "150",
"buyAsset": "ETH.ETH",
"expectedBuyAmount": "43567890123456789",
"expectedBuyAmountMaxSlippage": "41389345617284210",
"fees": [
{
"type": "NETWORK",
"asset": "ETH.ETH",
"amount": "2000000000000000",
"chain": "ETH",
"protocol": "THORCHAIN"
},
{
"type": "AFFILIATE",
"asset": "ETH.ETH",
"amount": "383396073076470",
"chain": "ETH",
"protocol": "THORCHAIN"
}
],
"estimatedTime": {
"inbound": 600,
"swap": 10,
"outbound": 600,
"total": 1210
},
"meta": {
"priceImpact": 0.05,
"slippagePercent": 5
}
}
]
}Returns available swap routes for the given sell and buy assets.
curl --request POST \
--url https://api.dkit.xyz/v1/quote \
--header 'Content-Type: application/json' \
--data '
{
"sellAsset": "ETH.USDC-0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"sellAmount": "150",
"buyAsset": "ETH.ETH",
"slippage": 5,
"affiliate": "dz",
"affiliateFee": 88,
"includeTx": true,
"providers": [
"THORCHAIN"
],
"sourceAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb7",
"destinationAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb7"
}
'{
"quoteId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"routes": [
{
"providers": [
"THORCHAIN"
],
"sellAsset": "ETH.USDC-0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"sellAmount": "150",
"buyAsset": "ETH.ETH",
"expectedBuyAmount": "43567890123456789",
"expectedBuyAmountMaxSlippage": "41389345617284210",
"fees": [
{
"type": "NETWORK",
"asset": "ETH.ETH",
"amount": "2000000000000000",
"chain": "ETH",
"protocol": "THORCHAIN"
},
{
"type": "AFFILIATE",
"asset": "ETH.ETH",
"amount": "383396073076470",
"chain": "ETH",
"protocol": "THORCHAIN"
}
],
"estimatedTime": {
"inbound": 600,
"swap": 10,
"outbound": 600,
"total": 1210
},
"meta": {
"priceImpact": 0.05,
"slippagePercent": 5
}
}
]
}Asset to sell
Asset to buy
Slippage tolerance in percentage (e.g., 0.5 = 0.5%, 3 = 3%). Rounded to bps internally.
0 <= x <= 100List of providers to use
THORCHAIN, THORCHAIN_STREAMING, CHAINFLIP, CHAINFLIP_STREAMING, MAYACHAIN, MAYACHAIN_STREAMING, ONEINCH, JUPITER, GARDEN, JUPITER->CHAINFLIP, ONEINCH->CHAINFLIP, CHAINFLIP->ONEINCH Address to send asset from
Address to send asset to
Affiliate thorname
Set to true to include an transaction object (EVM only)
Successful quote response
Quote ID
Show child attributes
THORCHAIN, THORCHAIN_STREAMING, CHAINFLIP, CHAINFLIP_STREAMING, MAYACHAIN, MAYACHAIN_STREAMING, ONEINCH, JUPITER, GARDEN, JUPITER->CHAINFLIP, ONEINCH->CHAINFLIP, CHAINFLIP->ONEINCH Asset to sell
Sell amount
Asset to buy
Expected Buy amount
Expected Buy amount max slippage
Source address
Destination address
Show child attributes
liquidity, network, inbound, outbound, affiliate, tax, priority ARB, AVAX, BASE, BSC, BTC, BCH, GAIA, DASH, DOGE, ETH, FIAT, KUJI, LTC, MAYA, OP, DOT, FLIP, MATIC, XRD, THOR, SOL, ZEC, HYPE THORCHAIN, THORCHAIN_STREAMING, CHAINFLIP, CHAINFLIP_STREAMING, MAYACHAIN, MAYACHAIN_STREAMING, ONEINCH, JUPITER, GARDEN, JUPITER->CHAINFLIP, ONEINCH->CHAINFLIP, CHAINFLIP->ONEINCH Total slippage in bps
Show child attributes
THORCHAIN, THORCHAIN_STREAMING, CHAINFLIP, CHAINFLIP_STREAMING, MAYACHAIN, MAYACHAIN_STREAMING, ONEINCH, JUPITER, GARDEN, JUPITER->CHAINFLIP, ONEINCH->CHAINFLIP, CHAINFLIP->ONEINCH Asset to sell
Sell amount
Asset to buy
Buy amount
Buy amount max slippage
Show child attributes
liquidity, network, inbound, outbound, affiliate, tax, priority ARB, AVAX, BASE, BSC, BTC, BCH, GAIA, DASH, DOGE, ETH, FIAT, KUJI, LTC, MAYA, OP, DOT, FLIP, MATIC, XRD, THOR, SOL, ZEC, HYPE THORCHAIN, THORCHAIN_STREAMING, CHAINFLIP, CHAINFLIP_STREAMING, MAYACHAIN, MAYACHAIN_STREAMING, ONEINCH, JUPITER, GARDEN, JUPITER->CHAINFLIP, ONEINCH->CHAINFLIP, CHAINFLIP->ONEINCH Show child attributes
CHEAPEST, FASTEST, RECOMMENDED Price impact
Approval address for swap
Affiliate code
Affiliate fee in basis points
Show child attributes
Show child attributes
Target address
Inbound address
Expiration
Memo
Error message
List of errors from different providers
Show child attributes
Provider that returned the error
THORCHAIN, THORCHAIN_STREAMING, CHAINFLIP, CHAINFLIP_STREAMING, MAYACHAIN, MAYACHAIN_STREAMING, ONEINCH, JUPITER, GARDEN, JUPITER->CHAINFLIP, ONEINCH->CHAINFLIP, CHAINFLIP->ONEINCH Standardized error code identifying the type of error
unknownError, tradingHalted, providerQuoteTimeout, tokenNotFound, unsupportedChainId, invalidSellAmount, crossChainNotSupported, insufficientLiquidity, swapAmountTooSmall, quoteNotFound, dexAggregationNotSupported, httpError, missingChainflipBuyAsset, missingChainflipBuyChain, missingChainflipSellAsset, missingChainflipSellChain Human-readable error message