GET /api/v1/quote — Get the best swap route and estimated output for a token pair.
Input token mint address (Solana base58 public key).
"So11111111111111111111111111111111111111112"
Output token mint address (Solana base58 public key).
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
Amount in smallest token units (lamports for SOL, base units for SPL tokens). For SOL with 9 decimals: 1000000000 = 1 SOL.
"1000000000"
How the amount is interpreted. ExactIn: amount is exact input, output is estimated. ExactOut: amount is exact desired output, input is estimated.
ExactIn, ExactOut "ExactIn"
Slippage tolerance in basis points (1 bps = 0.01%). Defaults to 50 (0.5%). Common values: 10 (0.1%), 50 (0.5%), 100 (1%), 300 (3%).
50