Instruction errors (runtime)

InvalidRealloc

Appears as Failed to reallocate account data

Instruction

InvalidRealloc

“Failed to reallocate account data”

The account could not be resized.

Common causes

  • Growing an account by more than 10 KiB in one instruction, or beyond the 10 MiB maximum.

How to fix it

  • Realloc in steps of at most 10,240 bytes per instruction.

Decode another error

Try: