Error codes / 0x18
custom program error: 0x18
Custom(24) · 0x18 · used by 5 programs we know
This number has no meaning on its own. Each Solana program numbers its own errors, so 0x18 is WrongAccountsNumber in Raydium AMM V4 but UriTooLong in Metaplex NFT Packs. 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 0x18, explains it, and rebuilds the transaction when the cause is one it can fix.
What 0x18 means, by program
- WrongAccountsNumberRaydium AMM V4
Wrong accounts number
- UriTooLongMetaplex NFT Packs
URI too long
- EditionMintDecimalsShouldBeZeroMetaplex Token Metadata
The program raised this named error and published no further explanation.
- FailedToSerializeEventPhoenix
Failed to serialize event
- IncorrectTokenProgramIdSPL Token Swap
The provided token program does not match the token program expected by the swap