Custom program error

0x3e91001

Appears in logs as custom program error: 0x3e9

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 idl commands against a program built without IDL support or with the wrong program id.

How to fix it

  • Build with the idl-build feature and double check the program id passed to the IDL command.

Decode another error

Try: