Operation.Amount.Value
field should always be populated with the balance change (or “delta”), not the new balance of an account after an operation is applied (sometimes called “state streaming”).
If you would still like to surface the balance of an account after an operation is applied because it is expected by users of the blockchain you are implementing, you should add it to the Operation.Metadata
field (along with any other useful metadata you want to return). It is not required to surface the balance of an account after an operation is applied.
Operation.Amount.Value
is populated with the new balance of each account instead of the balance change that occurs in the transaction.
Operation.Amount.Value
is populated with the balance change of each account involved in the transaction instead of the new balance of each account involved in the transaction. The new balance of each account involved in the transaction is added to Operation.Metadata
(optional).
/account/balance
endpoint). “Dangling” balance changes (unattributable balance changes) can create insurmountable data or auditing challenges for some institutional blockchain users, which could prevent them from integrating with your implementation.
It is important to note that this does not mean that every operation with a populated account must have an amount. In fact, this is allowed and is a popular pattern to represent on-chain activity that does not involve a balance change (where operation metadata is populated with on-chain data).