Query Parameters
An ID of a chain, a chain where the swap must be performed
1
, 10
, 56
, 137
, 8453
, 42161
, 43114
, 59144
, 7565164
, 100000001
, 100000002
, 100000008
, 100000009
, 100000013
, 100000014
, 100000017
, 100000020
, 100000021
, 100000022
, 100000023
, 100000025
, 100000026
, 100000027
, 100000028
An address of an input token to swap
An amount of input tokens to swap
A slippage constraint (in %) is a safeguard during swaps (on both source and destination chains, if applicable). It is also used to calculate the minimum possible outcome during estimation. This property can be set to "auto" so that the API will suggest the best possible slippage.
An address of a target token.
The share of the input amount to be distributed to the affiliateFeeRecipient
(if given) address as an affiliate fee.
If you are building on top of deSwap, you might want to take a small fee relative to the amount of a token a user provides for a swap. To achieve this, set this parameter to a desired % (e.g. 0.1
stands for 0.1%; the max value is 10
which stands for 10% of srcAmountInParam
) and specify your wallet address in the affiliateFeeRecipient
parameter.
For example, setting this parameter to 0.1
means that when the user gives 5000 USDT then you will receive 5 USDT immediately after transaction is being confirmed.
An address (on an origin chain) that will receive affiliate fees according to the affiliateFeePercent
parameter. For solana affiliate fee you have to create & provide Jupiter's referral key (https://referral.jup.ag/dashboard).
Address (on the source chain) who submits input tokens for a cross-chain swap
Configures the priority level for transaction fee estimation.
normal
, aggressive
Response
Comparison data for all swap aggregators that were compared
Transaction data. For max-amount requests, includes gasLimit, gasPrice, and estimatedTransactionFee.
Estimated transaction fee (gasCost) for the transaction
Costs details