PACT SWAP CMGet swap quote by amount from GET
Get swap quote by amount from
Get swap quote by amount from.
Query Parameters
fromstring
From contract id.
tostring
To contract id.
amountFromnumber
Amount from.
backendUrl?string
Backend URL, default: https://api-cloud.coinweb.io/wallet
Format
uri
fromType?string
From type.
Value in
"eth" | "btc" | "ltc" | "bnb" | "trx" | "usdt_trx" | "usdt_bnb" | "usdc_bnb" | "usd1_bnb" | "usdt_eth" | "wbtc_eth" | "usdc_eth" | "usd1_eth"
toType?string
To type.
Value in
"eth" | "btc" | "ltc" | "bnb" | "trx" | "usdt_trx" | "usdt_bnb" | "usdc_bnb" | "usd1_bnb" | "usdt_eth" | "wbtc_eth" | "usdc_eth" | "usd1_eth"
botUrl?string
Bot url.
Format
uri
Response Body
curl -X GET "https://api.pactswap.io/pactswap_cm/getSwapQuoteByAmountFrom?from=string&to=string&amountFrom=0&backendUrl=http%3A%2F%2Fexample.com&fromType=eth&toType=eth&botUrl=http%3A%2F%2Fexample.com"
{
"amountTo": 0
}
Was this documentation helpful? Any suggestions?
Last updated on