Solana error codes › SPL Token Swap

SPL Token Swap error codes

29 error codes defined by SPL Token Swap (program ID SwaPpA9LAaLfeLi3a68M4DjnLqgtticKg6CnyNwgAC8). In logs they appear as custom program error: 0x… after Program SwaPpA9LAaLfeLi3a68M4DjnLqgtticKg6CnyNwgAC8 failed.

HexCodeError
0x00AlreadyInUse
Swap account already in use
The name points to account state: an account was expected to exist (or not exist) already.
0x11InvalidProgramAddress
Invalid program address generated from bump seed and key
0x22InvalidOwner
Input account owner is not the program address
The name points to a permission check: the wrong signer or owner account was passed.
0x33InvalidOutputOwner
Output pool account owner cannot be the program address
0x44ExpectedMint
Deserialized account is not an SPL Token mint
0x55ExpectedAccount
Deserialized account is not an SPL Token account
0x66EmptySupply
Input token account empty
0x77InvalidSupply
Pool token mint has a non-zero supply
0x88InvalidDelegate
Token account has a delegate
0x99InvalidInput
0xa10IncorrectSwapAccount
Address of the provided swap token account is incorrect
0xb11IncorrectPoolMint
Address of the provided pool token mint is incorrect
0xc12InvalidOutput
0xd13CalculationFailure
General calculation failure due to overflow or underflow
0xe14InvalidInstruction
Invalid instruction
0xf15RepeatedMint
Swap input token accounts have the same mint
0x1016ExceededSlippage
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.
0x1117InvalidCloseAuthority
Token account has a close authority
0x1218InvalidFreezeAuthority
Pool token mint has a freeze authority
0x1319IncorrectFeeAccount
Pool fee token account incorrect
0x1420ZeroTradingTokens
Given pool token amount results in zero trading tokens
0x1521FeeCalculationFailure
Fee calculation failed due to overflow, underflow, or unexpected 0
0x1622ConversionFailure
Conversion to u64 failed with an overflow or underflow
0x1723InvalidFee
The provided fee does not match the program owner's constraints
0x1824IncorrectTokenProgramId
The provided token program does not match the token program expected by the swap
0x1925UnsupportedCurveType
The provided curve type is not supported by the program owner
0x1a26InvalidCurve
The provided curve parameters are invalid
0x1b27UnsupportedCurveOperation
The operation cannot be performed on the given curve
0x1c28InvalidFeeAccount
The pool fee account is invalid

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.