Anchor
IdlInstructionInvalidProgram
“The transaction was given an invalid program for the IDL instruction”
The transaction was given an invalid program for the IDL instruction.
Common causes
- Using
anchor idlcommands against a program built without IDL support or with the wrong program id.
How to fix it
- Build with the
idl-buildfeature and double check the program id passed to the IDL command.