You can swap any token pair through the Jupiter aggregator. Jupiter routes orders across Solana’s DEXes to find the best price, and includes MEV protection to prevent front-running.Documentation Index
Fetch the complete documentation index at: https://docs.useknot.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Execute a swap
Request parameters
The source token. Use a common symbol (e.g.,
USDC) or the token’s Solana mint address.The destination token. Use a common symbol or mint address.
The amount of the source token to swap.
Slippage tolerance in basis points. Defaults to
50 (0.5%). See slippage guidance below.Response
Response fields
Slippage
Slippage tolerance protects you against price movement between the time the order is submitted and when it lands on-chain. If the final price moves beyond the tolerance, the transaction is rejected rather than executed at an unfavorable price.| Basis points | Percentage | Recommended use |
|---|---|---|
| 10 | 0.1% | Stable pairs (USDC/USDT) |
| 50 | 0.5% | Standard swaps |
| 100 | 1.0% | Volatile tokens |
| 300 | 3.0% | Low-liquidity tokens |
Supported tokens
Jupiter supports thousands of tokens on Solana. You can identify tokens in two ways:By symbol
Common symbols are recognized automatically:By mint address
For any token not covered by a common symbol, use its Solana mint address:Jupiter integration and MEV protection
Knot routes all swaps through Jupiter, Solana’s leading DEX aggregator. Jupiter:- Splits orders across multiple liquidity pools (Raydium, Orca, and others) to minimize price impact
- Uses smart routing to find the optimal path for any token pair
- Includes MEV protection to prevent sandwich attacks on your transactions
route field in the response shows which DEXes were used for a given swap.
Common trade scenarios
Swap stablecoins
Swap stablecoins
Use tight slippage for stablecoin-to-stablecoin swaps since price variation is minimal:
Buy a volatile token
Buy a volatile token
Use higher slippage when trading low-liquidity or volatile tokens to avoid transaction failures:
Trade using mint addresses
Trade using mint addresses
Specify tokens by their on-chain mint address when their symbol is not recognized: