Instruction errors (runtime)

InvalidInstructionData

Appears as invalid instruction data

Instruction

InvalidInstructionData

“invalid instruction data”

The instruction's data bytes could not be parsed by the program.

Common causes

  • Encoding the instruction with the wrong layout, discriminator or client version.
  • Calling the wrong program id with data meant for another program.

How to fix it

  • Use the official client for the program and check the program id.

Decode another error

Try: