Instruction errors (runtime)

MaxAccountsExceeded

Appears as Max accounts exceeded

Instruction

MaxAccountsExceeded

“Max accounts exceeded”

The transaction references more accounts than allowed.

Common causes

  • Very large instructions, often from composing many CPIs.

How to fix it

  • Use address lookup tables and split the transaction.

Decode another error

Try: