solana.staking.balances table contains the historical staking numbers for each stake_account. The data is reconstructed by indexing instructions to the stake program, specifically initialize, delegate, withdraw, deactivate, split, merge and deactivateDelinquent. In addition, rewards disbursed at each epoch are also included in this table as it affects the delegated stake amount.
Table Details
Known limitations: staking state is calculated cumulatively from stake-related actions. We are working through the remaining edge cases that affect
delegated_stake, active_stake and inactive_stake. Our sampling indicates that some balances can be a few percent off at times. Stake Actions
Each row in this table reflects anaction taken on a stake_account, and the resultant state of the account after said action. These are the types of stake actions tracked: