Home / Solana errors / 0x13
custom program error 0x13
0x13 is hexadecimal for 19. 3 programs in our catalogue can raise it, with 2 different meanings between them. Which one you hit is decided by the program ID in the log line — not by the number.
What 0x13 means, program by program
| Program | Meaning of 0x13 there |
|---|---|
SPL TokenToke…Q5DA |
Instruction does not support non-native tokens An instruction reserved for the native-SOL account was sent to a regular token account, where it has no meaning. |
Token-2022Toke…Q5DA |
Instruction does not support non-native tokens An instruction reserved for the native-SOL account was sent to a regular token account, where it has no meaning. |
Raydium AMM v4675k…1Mp8 |
Invalid supply The LP token supply does not match what the operation requires — either the mint's supply was changed outside the AMM, or the pool was initialised with a supply the program did not expect. |
The same code in real logs
Every line below is a genuine failure message for 0x13 — same number, different owner:
- SPL Token — Instruction does not support non-native tokens
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA failed: custom program error: 0x13 - Token-2022 — Instruction does not support non-native tokens
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA failed: custom program error: 0x13 - Raydium AMM v4 — Invalid supply
Program 675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8 failed: custom program error: 0x13
The pubkey after Program is what decides the meaning. Match it against the table rather than guessing from the number.
How to tell which program raised yours
- Read the program ID. The log line reads
Program <pubkey> failed: custom program error: 0x13. That pubkey is the owner of the error table — match it against the table above. - No pubkey left in the log? The failed instruction still names its owner: token instructions (transfer, transferChecked, mintTo, burn) belong to a token program; swap, deposit and withdraw instructions belong to an AMM.
- Convert before you search. 0x13 and 19 are the same code; docs, RPC error objects and blog posts quote it in different bases, and searching the wrong one returns unrelated programs.
Where the wording cannot help you
SPL Token and Token-2022 both describe this code the same way. If your only clue is the message text, the program ID is the only thing that separates them.
Other codes with the same collision problem
- custom program error 0x1773 — 8 programs
- custom program error 0x1774 — 7 programs
- custom program error 0x1775 — 5 programs
- custom program error 0x1776 — 5 programs
- custom program error 0x16 — 2 programs
- custom program error 0x1d — 2 programs
- custom program error 0x1e — 2 programs
- custom program error 0x1f — 2 programs
The full picture — all 58 contested codes at once — is on the cross-program error code index.