A Solana account update came through—but why didn’t the balance change?
If your payment alert goes off every time an accountSubscribe notification arrives, you may get a notification even when the balance hasn’t changed at all. This Solana subscription tracks both an account’s lamports and its data. Lamports are the smallest unit of native SOL held by an account. When a program rewrites account data, the node can push an update even if the lamports stay the same.
For example, an application changes an order’s status from pending to completed. Suppose this update only changes the account data. A monitoring program may still receive a notification, but that alone isn’t enough to record an incoming SOL payment. To alert on balance changes, compare the lamports for the same address before and after the update. To reconcile an order, you also need to check the transaction execution result and verify the expected recipient, asset, and amount.
SPL token monitoring should also take this into account. The token balance is data belonging to the token account. The lamports held by that account and the number of tokens recorded in it are two separate readings. The dashboard should label them separately so users know exactly which number has changed.
Source https://solana.com/developers/docs/rpc/websocket/accountsubscribe
https://solana.com/developers/docs/tokens