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.
This table is in beta - As the staking state has to be cumulatively calculated from stake-related actions, we are still working through all the edge cases that affect delegated, active, inactive balances. Our sampling indicates that some balances could 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: