Error codes / 0x4
custom program error: 0x4
Custom(4) · 0x4 · used by 7 programs we know
This number has no meaning on its own. Each Solana program numbers its own errors, so 0x4 is InvalidCoinVault in Raydium AMM V4 but OwnerMismatch 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 0x4, explains it, and rebuilds the transaction when the cause is one it can fix.
What 0x4 means, by program
- InvalidCoinVaultRaydium AMM V4
The program raised this named error and published no further explanation.
- OwnerMismatchSPL Token
The owner of the token account does not match the signer or authority.
- Seed too longSystem Program
A seed used to derive the address exceeds 32 bytes.
- CardShouldntHaveProbabilityValueMetaplex NFT Packs
Cards for this pack shouldn't have probability value
- UninitializedMetaplex Token Metadata
The program raised this named error and published no further explanation.
- MarketUninitializedPhoenix
Market is not initialized error
- ExpectedMintSPL Token Swap
Deserialized account is not an SPL Token mint