Instruction errors (runtime)

InvalidArgument

Appears as invalid program argument

Instruction

InvalidArgument

“invalid program argument”

The program rejected one of its arguments. Native programs (System, Stake, Vote, BPF Loader) use this for bad inputs.

Common causes

  • Passing an invalid value such as a zero amount, an unsupported option, or an address that fails the program's checks.

How to fix it

  • Read the log line before this error; native programs usually log what was wrong.

Decode another error

Try: