Transaction & RPC errors

UnbalancedTransaction

Appears as Sum of account balances before and after transaction do not match

Transaction

UnbalancedTransaction

“Sum of account balances before and after transaction do not match”

Lamports were created or destroyed somewhere in the transaction, which the runtime forbids.

Common causes

  • A program bug that credits or debits lamports without a matching counterpart.

How to fix it

  • Audit lamport changes in each instruction so that total lamports (minus fees) stay constant.

Decode another error

Try: