Error codes / 0x2
custom program error: 0x2
Custom(2) · 0x2 · used by 7 programs we know
This number has no meaning on its own. Each Solana program numbers its own errors, so 0x2 is ExpectedMint in Raydium AMM V4 but InvalidMint in SPL Token. The meaning that applies is the one from the program that actually failed: the first Program … failed line in the transaction's logs. That is often not the program you called, but one it invoked, or a guard instruction your wallet added.
Don't guess: paste the transaction
TxWhy reads the logs, finds the program and the exact instruction that raised 0x2, explains it, and rebuilds the transaction when the cause is one it can fix.
What 0x2 means, by program
- ExpectedMintRaydium AMM V4
The program raised this named error and published no further explanation.
- InvalidMintSPL Token
The mint account is not valid.
- Invalid program idSystem Program
The account was assigned to, or expected to be owned by, a different program.
- CardProbabilityMissingMetaplex NFT Packs
Card probability is missing
- NotRentExemptMetaplex Token Metadata
Lamport balance below rent-exempt threshold
- FailedToLoadMarketFromAccountPhoenix
Market deserialization error
- InvalidOwnerSPL Token Swap
Input account owner is not the program address