Skip to main content

General HTTP errors

Trading API

route_not_found

This error is most common in two situations:
  1. Incorrect amount units. The amount parameter is the inputMint amount in atomic units (scaled by decimals). If you pass standard (human-readable) units (for example 8 instead of 8_000_000), the router will not find a viable route.
  2. No available route. The router found no viable route between inputMint and outputMint. 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.