Custom program error

0xc12

Appears in logs as custom program error: 0xc

SPL TokenTokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA

InvalidInstruction

“Invalid instruction”

The instruction data could not be parsed as a valid Token program instruction.

Common causes

  • Sending Token-2022-only instructions to the original Token program, or vice versa.
  • Hand-built instruction data with the wrong discriminator byte or layout.
  • A client library version mismatch with the deployed program.

How to fix it

  • Use the official @solana/spl-token helpers and pass the right program id for the mint.

Decode another error

Try: