addBalance(options)
This allows for tracking SOL account balances. options has the following structure:
account: the set of accounts to track. Leave undefined to subscribe to balance updates of all accounts in the whole network.
transaction = true: retrieve the transaction that gave rise to the balance updatetransactionInstructions = true: retrieve all instructions executed by the parent transaction
Balance item describes a single account, with its balances before (pre) and after (post) the transaction. The related data will be added to the appropriate iterables within the block data. You can also call augmentBlock() from @subsquid/solana-objects on the block data to populate the convenience reference fields like balance.transaction.
Selection of the exact fields to be retrieved for each balance item and the related data is done with the setFields() method documented on the Field selection page.