Solana error codes › Raydium AMM V4
57 error codes defined by Raydium AMM V4 (program ID 675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8). In logs they appear as custom program error: 0x… after Program 675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8 failed.
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 |
|---|---|---|
| 0x0 | 0 | AlreadyInUse The name points to account state: an account was expected to exist (or not exist) already. |
| 0x1 | 1 | InvalidProgramAddress |
| 0x2 | 2 | ExpectedMint |
| 0x3 | 3 | ExpectedAccount |
| 0x4 | 4 | InvalidCoinVault |
| 0x5 | 5 | InvalidPCVault |
| 0x6 | 6 | InvalidTokenLP |
| 0x7 | 7 | InvalidDestTokenCoin |
| 0x8 | 8 | InvalidDestTokenPC |
| 0x9 | 9 | InvalidPoolMint |
| 0xa | 10 | InvalidOpenOrders |
| 0xb | 11 | InvalidSerumMarket |
| 0xc | 12 | InvalidSerumProgram |
| 0xd | 13 | InvalidTargetOrders |
| 0xe | 14 | InvalidWithdrawQueue |
| 0xf | 15 | InvalidTempLp |
| 0x10 | 16 | InvalidCoinMint |
| 0x11 | 17 | InvalidPCMint |
| 0x12 | 18 | InvalidOwner The name points to a permission check: the wrong signer or owner account was passed. |
| 0x13 | 19 | InvalidSupply |
| 0x14 | 20 | InvalidDelegate |
| 0x15 | 21 | InvalidSignAccount Invalid Sign Account |
| 0x16 | 22 | InvalidStatus |
| 0x17 | 23 | InvalidInstruction Invalid instruction |
| 0x18 | 24 | WrongAccountsNumber Wrong accounts number |
| 0x19 | 25 | WithdrawTransferBusy Withdraw_transfer is busy |
| 0x1a | 26 | WithdrawQueueFull WithdrawQueue is full |
| 0x1b | 27 | WithdrawQueueEmpty WithdrawQueue is empty |
| 0x1c | 28 | InvalidParamsSet Params Set is invalid |
| 0x1d | 29 | InvalidInput |
| 0x1e | 30 | ExceededSlippage instruction exceeds desired slippage limit The swap result is outside the slippage limit set in the transaction. |
| 0x1f | 31 | CalculationExRateFailure |
| 0x20 | 32 | CheckedSubOverflow Checked_Sub Overflow The name points to a checked arithmetic failure inside the program, often from extreme amounts or an outdated client. |
| 0x21 | 33 | CheckedAddOverflow Checked_Add Overflow The name points to a checked arithmetic failure inside the program, often from extreme amounts or an outdated client. |
| 0x22 | 34 | CheckedMulOverflow Checked_Mul Overflow The name points to a checked arithmetic failure inside the program, often from extreme amounts or an outdated client. |
| 0x23 | 35 | CheckedDivOverflow Checked_Div Overflow The name points to a checked arithmetic failure inside the program, often from extreme amounts or an outdated client. |
| 0x24 | 36 | CheckedEmptyFunds Empty Funds |
| 0x25 | 37 | CalcPnlError Calc pnl error |
| 0x26 | 38 | InvalidSplTokenProgram |
| 0x27 | 39 | TakePnlError Take Pnl error |
| 0x28 | 40 | InsufficientFunds Insufficient funds The name points to a balance check: an account holds less than the instruction needs. |
| 0x29 | 41 | ConversionFailure Conversion to u64 failed with an overflow or underflow |
| 0x2a | 42 | InvalidUserToken user token input does not match amm |
| 0x2b | 43 | InvalidSrmMint |
| 0x2c | 44 | InvalidSrmToken |
| 0x2d | 45 | TooManyOpenOrders |
| 0x2e | 46 | OrderAtSlotIsPlaced |
| 0x2f | 47 | InvalidSysProgramAddress |
| 0x30 | 48 | InvalidFee The provided fee does not match the program owner's constraints |
| 0x31 | 49 | RepeatCreateAmm Repeat create amm about market |
| 0x32 | 50 | NotAllowZeroLP Not allow Zero LP |
| 0x33 | 51 | InvalidCloseAuthority Token account has a close authority |
| 0x34 | 52 | InvalidFreezeAuthority Pool token mint has a freeze authority |
| 0x35 | 53 | InvalidReferPCMint |
| 0x36 | 54 | InvalidConfigAccount |
| 0x37 | 55 | RepeatCreateConfigAccount Repeat create staking config account |
| 0x38 | 56 | UnknownAmmError Unknown Amm 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.