Skip to main content
The swap APIs return the following errors when a request cannot be fulfilled.

Validation errors

ErrorHTTP statusDescription
Swaps not enabled403Swaps are not enabled for your app. Enable swaps in the Privy Dashboard.
Unsupported chain400The caip2 chain identifier is not a supported chain.
Same input and output token400The input_token and output_token must be different.
Non-EVM wallet400Only EVM wallets are supported for swap operations.
Gas sponsorship not enabled400Gas sponsorship is required but not enabled for your app.
Insufficient token balance400The wallet does not have enough of the input token to cover the swap amount. Returned for exact_input swaps only.

Routing errors

ErrorHTTP statusDescription
No quotes available400No swap route could be found for the given token pair, amount, or chain. This can occur if the token pair lacks liquidity or the token address is invalid on the specified chain.
Token or route not found404The specified token or swap route does not exist. Verify that the token addresses are correct for the target chain.
Rate limited429The request was rate limited. Retry after a brief delay.