v1
latestOpenAPI 3.0.32026-07-2495744.0 KBquote
To get the best priced quote
To get the best priced quote, and retrieved quote will be used in POST /v1/swap.
get/v1/sol/quote
Query parameters
chainIdstring
Example:sol
Chain ID
inputTokenstring required
Input token address
outputTokenstring required
Output token address
amountinteger required
The amount to swap, have to factor in the token decimals.
dexes'bluefin_spot' | 'cetus_clmm'
DEX list, separated by comma. If not specified, all DEXs will be used.
excludeDexes'bluefin_spot' | 'cetus_clmm'
DEX list to be excluded, separated by comma. If not specified, all DEXs will be used.
commissionDirectionboolean
Example:true
Commission direction. true means charge from inputToken, false means charge from outputToken
commissionRateinteger
Example:5
Commission rate, in basis points (bps), e.g. 15 means 0.15%. When charging inputToken, deduct from amountIn before quote; when charging outputToken, quote first then deduct from amountOut
userAddressstring
user address
Response
Successful response, to be used in /v1/swap
Example response
{
"msg": "success",
"data": {
"inputToken": "0x2::sui::SUI",
"outputToken": "0xe1b45a0e641b9955a20aa0ad1c1f4ad86aad8afb07296d4085e349a50e90bdca::blue::BLUE",
"routePlans": [
{
"router": "0xe1b45a0e641b9955a20aa0ad1c1f4ad86aad8afb07296d4085e349a50e90bdca::blue::BLUE - 0x2::sui::SUI",
"subRouters": [
{
"fromToken": "0x2::sui::SUI",
"toToken": "0xe1b45a0e641b9955a20aa0ad1c1f4ad86aad8afb07296d4085e349a50e90bdca::blue::BLUE",
"dexes": [
{
"dex": "bluefin_spot",
"poolAddress": "0x198c607644a07d500b5b2bd076e54eecd022f471b714f89a336e38749559a496",
"weight": 10000,
"extraInfo": "{}"
}
]
}
]
}
]
}
}