<Price Inquiry> Interface
Obtain swap route information of select swap pair (route name, logo, swap pair information, etc.) : for users to choose a swap route
Request Address: /api/multiQuote
API Address: https://api-swap.paths.finance
Request Method: POST
Request Parameters:
equipmentNo
Device ID
string
Y
fromTokenAddress
Original token contract address
string
Y
toTokenAddress
Target token contract address
string
Y
fromTokenAmount
Original token amount, times amount after decimal
integer
Y
fromTokenChain
Original token chain
string
Y
toTokenChain
Target token chain
string
Y
userAddr
Sender address
string
Y
toAddress
Receiver address
string
Y
slippage
Acceptable slippage %,only integer,like 1 is 1%
decimal
Y
source
Unique ID of the channel
string
Y
Output Parameter:
The whole is an array of multiple channel prices
fromTokenAmount
Original token amount, times decimal
integer
fromTokenDecimal
Orginal token decimal
integer
toTokenAmount
Target token amount, divided by decimal
decimal
toTokenDecimal
Target token decimal
integer
dex
Swap platform
string
fee
Transaction fee, same as original token
decimal
feeToken
Transaction fee settlement token symbol
string
receiveTokenAmount
Estimate target token receiving amount, divided by decimal
decimal
logoUrl
Swap platform logo
string
depositMax
Max orginal token (only available for channels with deposit scope)
decimal
depositMin
Min orginal token (only available for channels with deposit scope)
decimal
kycInfo
Only available when there are channels related to KYC quota, including status of whether KYC is required, and Chinese and English link fields
object
isSupportNoGas
Only the SWFT channel will display, with the function of whether gas free or not
boolean
estimatedTime
Estimated time:1 (1-3 min), 2 (1-10 min), 3 (5-30 min)
decimal
path
swap path list
array
contractAddress
Only the Bridgers and Aggregator channel will display,swap address
string
approveAddress
Only the Glue channel will display,approve address
string
dexAddress
Only the Glue channel will display,swap address
string
Input example:
Output:
Postman Call Example
Last updated