Solana error codes › SPL Token Swap
29 error codes defined by SPL Token Swap (program ID SwaPpA9LAaLfeLi3a68M4DjnLqgtticKg6CnyNwgAC8). In logs they appear as custom program error: 0x… after Program SwaPpA9LAaLfeLi3a68M4DjnLqgtticKg6CnyNwgAC8 failed.
| Hex | Code | Error |
|---|---|---|
| 0x0 | 0 | AlreadyInUse Swap account already in use The name points to account state: an account was expected to exist (or not exist) already. |
| 0x1 | 1 | InvalidProgramAddress Invalid program address generated from bump seed and key |
| 0x2 | 2 | InvalidOwner Input account owner is not the program address The name points to a permission check: the wrong signer or owner account was passed. |
| 0x3 | 3 | InvalidOutputOwner Output pool account owner cannot be the program address |
| 0x4 | 4 | ExpectedMint Deserialized account is not an SPL Token mint |
| 0x5 | 5 | ExpectedAccount Deserialized account is not an SPL Token account |
| 0x6 | 6 | EmptySupply Input token account empty |
| 0x7 | 7 | InvalidSupply Pool token mint has a non-zero supply |
| 0x8 | 8 | InvalidDelegate Token account has a delegate |
| 0x9 | 9 | InvalidInput |
| 0xa | 10 | IncorrectSwapAccount Address of the provided swap token account is incorrect |
| 0xb | 11 | IncorrectPoolMint Address of the provided pool token mint is incorrect |
| 0xc | 12 | InvalidOutput |
| 0xd | 13 | CalculationFailure General calculation failure due to overflow or underflow |
| 0xe | 14 | InvalidInstruction Invalid instruction |
| 0xf | 15 | RepeatedMint Swap input token accounts have the same mint |
| 0x10 | 16 | ExceededSlippage Swap instruction exceeds desired slippage limit The name points to a slippage or minimum-output check: the price moved past the limit set in the transaction. |
| 0x11 | 17 | InvalidCloseAuthority Token account has a close authority |
| 0x12 | 18 | InvalidFreezeAuthority Pool token mint has a freeze authority |
| 0x13 | 19 | IncorrectFeeAccount Pool fee token account incorrect |
| 0x14 | 20 | ZeroTradingTokens Given pool token amount results in zero trading tokens |
| 0x15 | 21 | FeeCalculationFailure Fee calculation failed due to overflow, underflow, or unexpected 0 |
| 0x16 | 22 | ConversionFailure Conversion to u64 failed with an overflow or underflow |
| 0x17 | 23 | InvalidFee The provided fee does not match the program owner's constraints |
| 0x18 | 24 | IncorrectTokenProgramId The provided token program does not match the token program expected by the swap |
| 0x19 | 25 | UnsupportedCurveType The provided curve type is not supported by the program owner |
| 0x1a | 26 | InvalidCurve The provided curve parameters are invalid |
| 0x1b | 27 | UnsupportedCurveOperation The operation cannot be performed on the given curve |
| 0x1c | 28 | InvalidFeeAccount The pool fee account is invalid |
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.