I want to fetch data from Solana chain (getBlock
) and record state changes. pre
/post
balances will be useful to me to know balances of wallets over time.
It's not obvious to me how should I handle case when there are multiple transactions in one block affecting balance of the same (wallet, token) pair. Is it the case that for such a pair, every pre
/post
balance will be the same across whole block? Or maybe there is some hidden 'order' of transactions and I need to find 'latest' transaction in given block to know what is the real postBalance
?
Thank you for any help!