Custom program error

0xbbd3005

Appears in logs as custom program error: 0xbbd

Anchor

AccountNotEnoughKeys

“Not enough account keys given to the instruction”

The instruction received fewer accounts than its #[derive(Accounts)] struct requires.

Common causes

  • Client built from a stale IDL that omits an account added later.
  • Optional accounts not passed correctly.

How to fix it

  • Regenerate the client from the current IDL and pass every account in the struct.

Decode another error

Try: