curl --request GET \
--url https://raptor-beta.solanatracker.io/quote{
"inputMint": "<string>",
"outputMint": "<string>",
"amountIn": "<string>",
"amountOut": "<string>",
"minAmountOut": "<string>",
"feeAmount": "<string>",
"priceImpact": 123,
"slippageBps": 123,
"routePlan": [
{
"programId": "<string>",
"dex": "<string>",
"pool": "<string>",
"inputMint": "<string>",
"outputMint": "<string>",
"amountIn": "<string>",
"amountOut": "<string>",
"feeAmount": "<string>",
"priceImpact": 123,
"percent": 123
}
],
"contextSlot": 123,
"timeTaken": 123,
"swapUsdValue": "<string>",
"priorityFee": {
"recommended": 123,
"level": "<string>",
"levels": {
"min": 123,
"low": 123,
"medium": 123,
"high": 123,
"veryHigh": 123,
"unsafeMax": 123
}
},
"platformFee": {
"feeBps": 123,
"feeAccount": "<string>"
}
}Get the best swap quote across all supported DEXes with optimal routing
curl --request GET \
--url https://raptor-beta.solanatracker.io/quote{
"inputMint": "<string>",
"outputMint": "<string>",
"amountIn": "<string>",
"amountOut": "<string>",
"minAmountOut": "<string>",
"feeAmount": "<string>",
"priceImpact": 123,
"slippageBps": 123,
"routePlan": [
{
"programId": "<string>",
"dex": "<string>",
"pool": "<string>",
"inputMint": "<string>",
"outputMint": "<string>",
"amountIn": "<string>",
"amountOut": "<string>",
"feeAmount": "<string>",
"priceImpact": 123,
"percent": 123
}
],
"contextSlot": 123,
"timeTaken": 123,
"swapUsdValue": "<string>",
"priorityFee": {
"recommended": 123,
"level": "<string>",
"levels": {
"min": 123,
"low": 123,
"medium": 123,
"high": 123,
"veryHigh": 123,
"unsafeMax": 123
}
},
"platformFee": {
"feeBps": 123,
"feeAccount": "<string>"
}
}Input token mint address
Output token mint address
Input amount in lamports
x >= 1Slippage in basis points or 'dynamic'
Comma-separated list of DEXes to include
Comma-separated list of specific pool addresses
Maximum routing hops
1 <= x <= 4Platform fee in basis points
0 <= x <= 1000Take fee from input amount
Extra charge on positive slippage
x >= 0Fee recipient wallet address
Successful quote response
Input token mint address
Output token mint address
Input amount in lamports
Expected output amount in lamports
Minimum output amount after slippage
Total fees paid in lamports
Price impact percentage
Slippage used in basis points
Array of routing steps
Show child attributes
Solana slot when quote was generated
Time taken to generate quote in seconds
USD value of the input amount
Show child attributes
Show child attributes
Was this page helpful?