Tx Doctor / Solana error library / Invalid token instruction data

SPL Token 0xc0xc

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

How to fix it

  1. Retry through a maintained wallet or interface — their serialization is current.
  2. 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

Related Solana errors

Malformed or unsupported transaction

SanitizeFailure

Custom program error (unknown code)

Custom ...

Not enough account keys

Jupiter 6008

Signature verification failed

SignatureFailure

Invalid number of provided signers

SPL Token 0x7

Invalid number of required signers

SPL Token 0x8