Instruction errors (runtime)

UnbalancedInstruction

Appears as sum of account balances before and after instruction do not match

Instruction

UnbalancedInstruction

“sum of account balances before and after instruction do not match”

Lamports were created or destroyed by the instruction, which the runtime forbids.

Common causes

  • A program bug that changes lamports without a matching change elsewhere.

How to fix it

  • Every lamport debit must have a matching credit in the same instruction.

Decode another error

Try: