GET /quote

Sends a GET request to the Jupiter API to get the best priced quote.

get/quote

Query parameters

inputMintstring required

Input token mint address

outputMintstring required

Output token mint address

amountinteger required

The amount to swap, have to factor in the token decimals.

slippageBpsinteger

The slippage % in BPS. If the output token amount exceeds the slippage then the swap transaction will fail.

swapMode'ExactIn' | 'ExactOut'

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

dexesstring[]

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.

excludeDexesstring[]

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.

onlyDirectRoutesboolean

Default is false. Direct Routes limits Jupiter routing to single hop routes only.

asLegacyTransactionboolean

Default is false. Instead of using versioned transaction, this will use the legacy transaction.

platformFeeBpsinteger

If you want to charge the user a fee, you can specify the fee in BPS. Fee % is taken out of the output token.

maxAccountsinteger

Rough estimate of the max accounts to be used for the quote, so that you can compose with your own accounts

Response

Successful response

inputMintstring required
inAmountstring required
outputMintstring required
outAmountstring required
otherAmountThresholdstring required
swapMode'ExactIn' | 'ExactOut' required
slippageBpsinteger required
priceImpactPctstring required
contextSlotnumber
timeTakennumber

Changes