computeBalanceChanges
computeBalanceChanges(
accountKeys,snapshot,signer?):BalanceChanges|null
Defined in: simulate.ts:69
Balance changes from pre/post balances. accountKeys is the message’s account list in order (static keys, then
the lookups’ writable, then readonly addresses — what loadedAddresses lists). A token account that exists on one
side only (created or closed) counts from or to zero. Returns null when the balances are missing.
Parameters
Section titled “Parameters”accountKeys
Section titled “accountKeys”readonly (string | null)[]
snapshot
Section titled “snapshot”signer?
Section titled “signer?”string | null
Returns
Section titled “Returns”BalanceChanges | null