Solana error codes › Raydium CPMM (CP Swap)
11 error codes defined by Raydium CPMM (CP Swap) (program ID CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C). In logs they appear as custom program error: 0x… after Program CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C failed.
Custom errors start at 6000 (0x1770). If a code is below 6000 and not listed here, see the Anchor framework errors.
The swap result is outside the slippage limit set in the transaction.
What to do: Retry with a fresh quote; a higher slippage allows a worse price.
| Hex | Code | Error |
|---|---|---|
| 0x1770 | 6000 | NotApproved Not approved |
| 0x1771 | 6001 | InvalidOwner Input account owner is not the program address The name points to a permission check: the wrong signer or owner account was passed. |
| 0x1772 | 6002 | EmptySupply Input token account empty |
| 0x1773 | 6003 | InvalidInput |
| 0x1774 | 6004 | IncorrectLpMint Address of the provided lp token mint is incorrect |
| 0x1775 | 6005 | ExceededSlippage Exceeds desired slippage limit The swap result is outside the slippage limit set in the transaction. |
| 0x1776 | 6006 | ZeroTradingTokens Given pool token amount results in zero trading tokens |
| 0x1777 | 6007 | NotSupportMint Not support token_2022 mint extension |
| 0x1778 | 6008 | InvalidVault invaild vault |
| 0x1779 | 6009 | InitLpAmountTooLess Init lp amount is too less(Because 100 amount lp will be locked) |
| 0x177a | 6010 | TransferFeeCalculateNotMatch TransferFee calculate not match |
Free, no sign-up, nothing to connect. Works offline from a bundled list; we do not look anything up on-chain.
Swapping a token you do not know? A free Rugsight check shows mint and freeze authority, Token-2022 extensions, holder concentration and liquidity before you trade.
Source: solana-idls@1.2.1. Data: program error lists from published IDLs (solana-idls 1.2.1, MIT) and the System, SPL Token, Token-2022 and Associated Token Account source code, snapshot 2026-11-16. Programs can be upgraded and add or change errors; the failing program's current IDL is the final word.