Instruction errors (runtime)

NotEnoughAccountKeys

Appears as insufficient account keys for instruction

Instruction

NotEnoughAccountKeys

“insufficient account keys for instruction”

The instruction was given fewer accounts than it needs.

Common causes

  • Stale client or hand-built instruction missing accounts (often a program id, sysvar or ATA).

How to fix it

  • Compare your account list with the program's documentation or IDL.

Decode another error

Try: