GET /quote
Sends a GET request to the Jupiter API to get the best priced quote.
Query parameters
Input token mint address
Output token mint address
The amount to swap, have to factor in the token decimals.
The slippage % in BPS. If the output token amount exceeds the slippage then the swap transaction will fail.
(ExactIn or ExactOut) Defaults to ExactIn. ExactOut is for supporting use cases where you need an exact token amount, like payments. In this case the slippage is on the input token.
Default is that all DEXes are included. You can pass in the DEXes that you want to include only and separate them by ,. You can check out the full list here.
Default is that all DEXes are included. You can pass in the DEXes that you want to exclude and separate them by ,. You can check out the full list here.
Default is false. Direct Routes limits Jupiter routing to single hop routes only.
Default is false. Instead of using versioned transaction, this will use the legacy transaction.
If you want to charge the user a fee, you can specify the fee in BPS. Fee % is taken out of the output token.
Rough estimate of the max accounts to be used for the quote, so that you can compose with your own accounts
Response
Successful response