Tx Doctor / Solana error library / Invalid token instruction data
Solana error: Invalid token instruction data (0xc)
The instruction data sent to the token program could not be parsed — unknown instruction tag or malformed arguments.
Why it happens
- The byte layout of the instruction did not match any known token instruction, usually from serialization bugs or a legacy instruction packed for a newer program (or vice versa).
- Third-party front-ends that build their own token instructions occasionally emit the wrong packing.
How to fix it
- Retry through a maintained wallet or interface — their serialization is current.
- Developers: regenerate instruction data with the current @solana/spl-token library instead of hand-packing buffers.
What it looks like in the logs
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA failed: custom program error: 0xc RPC simulation: Transaction simulation failed: Error processing Instruction: custom program error: 0xc Wallet UI: "Transaction failed" — custom program error 0xc (12)
One failure, three places it shows up: the raw transaction log, the RPC simulation error, and the wallet's short message. Match on the code, never on the wording.
What this means for your funds
Solana transactions are atomic: if any instruction fails, every state change in that transaction is reverted, so token balances end exactly where they started. The network fee is still charged, because validators did the work of executing and rejecting it. A failed transaction never moves your tokens to someone else.
Seeing this error right now? Paste your transaction signature and get the exact instruction, program and code that failed.
Diagnose my transaction