General HTTP errors
Trading API
route_not_found
This error is most common in two situations:
-
Incorrect
amountunits. Theamountparameter is theinputMintamount in atomic units (scaled by decimals). If you pass standard (human-readable) units (for example8instead of8_000_000), the router will not find a viable route. -
No available route. The router found no viable route between
inputMintandoutputMint. This can happen for illiquid pairs or when the trade size exceeds available liquidity. Try a smaller amount or a different pair.
price_impact_too_high
The effective price during routing is worse than the allowed threshold. If unspecified, the server determines the default. To set your own threshold, pass priceImpactTolerancePct.