Skip to main content
Metis Swap API is no longer actively maintained and has been superseded by Swap V2.
This page covers error categories you may encounter when using the Metis Swap API: Jupiter Swap program errors (e.g., slippage exceeded, insufficient funds), Solana and DEX program errors, routing errors (e.g., no routes found, token not tradable), and swap transaction composing errors. Each entry includes debug guidance. In this section, you can find the list of errors that can be returned by the Metis Swap API, Swap Program or from other programs like DEXes, System or Token programs.

Program Errors

Jupiter Swap Program Errors

JUPITER SWAP PROGRAM IDLYou can find the full Swap Program IDL here: https://solscan.io/account/JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4#programIdl
ABNORMAL ERROR RATESIf you face high or consistent amounts of errors, please reach out to Jupiter Discord.

Solana Program Errors

DEX Program Errors

In the swap transaction, the DEX in routing may return errors. You can find some of their IDLs and/or error codes in an explorer. If they do not support public IDLs or open source code, you can reference the common errors below or if you need additional help, please reach out to Jupiter Discord.

Routing Errors

The common routing errors you may encounter are usually related to attempting to swap a token that is not tradable on Jupiter, for reasons such as lack of liquidity or the token is not supported.

Swap Transaction Composing Errors

Best Practices

It is important to understand the error codes when your products are user facing. This will help you provide a better experience for your users, helping them make an informed decision or follow up step to help their transaction succeed.
JUP.AG AS A REFERENCEYou can use https://jup.ag/ as a reference to understand how we handle errors on the UI.