Pact Swap

Get swap quote by amount to


Get swap quote by amount to.

GET
/pactswap_cm/getSwapQuoteByAmountTo

Query Parameters

fromstring

From contract id.

tostring

To contract id.

amountTonumber

Amount to.

backendUrl?string

Backend URL, default: https://api-cloud.coinweb.io/wallet

Formaturi
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.

Formaturi

Response Body

curl -X GET "https://api.pactswap.io/pactswap_cm/getSwapQuoteByAmountTo?from=string&to=string&amountTo=0&backendUrl=http%3A%2F%2Fexample.com&fromType=eth&toType=eth&botUrl=http%3A%2F%2Fexample.com"
{
  "amountFrom": 0
}

Was this documentation helpful? Any suggestions?

Last updated on