Solana error codes › Raydium CPMM (CP Swap)

Raydium CPMM (CP Swap) error codes

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.

Raydium CPMM (CP Swap): ExceededSlippage

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.

HexCodeError
0x17706000NotApproved
Not approved
0x17716001InvalidOwner
Input account owner is not the program address
The name points to a permission check: the wrong signer or owner account was passed.
0x17726002EmptySupply
Input token account empty
0x17736003InvalidInput
0x17746004IncorrectLpMint
Address of the provided lp token mint is incorrect
0x17756005ExceededSlippage
Exceeds desired slippage limit
The swap result is outside the slippage limit set in the transaction.
0x17766006ZeroTradingTokens
Given pool token amount results in zero trading tokens
0x17776007NotSupportMint
Not support token_2022 mint extension
0x17786008InvalidVault
invaild vault
0x17796009InitLpAmountTooLess
Init lp amount is too less(Because 100 amount lp will be locked)
0x177a6010TransferFeeCalculateNotMatch
TransferFee calculate not match

Decode an error

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.