Skip to main content
The 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 an action taken on a stake_account, and the resultant state of the account after said action. These are the types of stake actions tracked:
ActionDescription
initializeCreates a new stake account. This is the first action required before any staking operations can occur. Sets up the initial parameters including staker and withdrawer authorities.
delegateStakes tokens to a validator’s vote account.
deactivateInitiates the deactivation of an active stake account.
delinquent_vote_account_deactivateA special deactivation triggered by another account when a validator becomes delinquent. This forces deactivation of stakes delegated to problematic validators.
withdrawRemoves unstaked tokens from a stake account.
merge_sourceRepresents the source stake account in a merge operation. This account will be emptied and closed after merging into the destination.
merge_destinationRepresents the destination stake account in a merge operation. This account receives the delegated stake from the merge source account.
split_sourceThe original stake account that is being split. Its delegated amount is reduced by the split amount.
split_destinationA newly created stake account that receives a portion of the split_source’s stake. Inherits the same validator delegation as the source.
rewardsRepresents staking rewards being distributed to the stake account. Increases the delegated amount by the reward amount.

Table columns

Column NameDescriptionTypeExample
stake_accountThe address of the stake accountvarchar3jAwbKWs18jRHJ7tnNjz2tw2iU5K2ukQXhCwjzbNg76C
actionThe staking action performed (e.g. delegate, deactivate, split, merge, etc)varchardelegate
delegated_stakeAmount of SOL delegated minus rent reservefloat499999.99771712
active_stakeAmount of SOL currently earning rewardsfloat0
inactive_stakeDifference between delegated and active stakefloat499999.99771712
total_rewardsCumulative rewards earned by the stake accountfloat0
delegated_vote_accountValidator vote account address that the stake is delegated tovarchar7UKUPLwLrV7iLqL5ndTzYDav73mpoMxKjyM7EjMExTaw
last_activation_epochThe most recent epoch when the stake was activatednumber90
last_deactivation_epochThe most recent epoch when the stake was deactivatednumber
activation_statusCurrent status of the stake accountvarcharactivating
epochThe epoch when this record was creatednumber90
action_infoAdditional info about the action (JSON/variant)variant{"vote_account": "7UKUPLwLrV7iLqL5ndTzYDav73mpoMxKjyM7EjMExTaw"}
block_slotBlock slot of the actionnumber38883476
block_heightBlock height of the actionnumber
block_timestampBlock timestamp of the actiontimestamp_ntz2020-10-03 16:02:39.000
block_hashBlock hash of the actionvarchar6MNp2RRKbbqsFBAVE3RmCPJXYPmH4xrzKAEBv8juZJS
txn_idTransaction ID of the actionvarchar3BkjfR1YNNTzRwEXAsNhtAUMECVGoRKTeQVqFk1GsmgiVRVyrDaSUtAyxqkRjqYLPWa76XVUjZEaKpkX3TBbmiaD
txn_indexTransaction index within the blocknumber147
instruction_indexInstruction index within the transactionnumber0
inner_instruction_indexInner instruction index within the instructionnumber
pseudo_global_orderGlobal ordering number for the recordnumber38883476000147000001000000
pre_tx_amountStake account balance before the transaction (string)varchar500000
post_tx_amountStake account balance after the transaction (string)varchar500000
unique_idUnique identifier for the recordvarcharstake_account-3jAwbKWs18jRHJ7tnNjz2tw2iU5K2ukQXhCwjzbNg76C_block_slot-38883476_txn_id-3BkjfR1YNNTzRwEXAsNhtAUMECVGoRKTeQVqFk1GsmgiVRVyrDaSUtAyxqkRjqYLPWa76XVUjZEaKpkX3TBbmiaD_i_index-0_ii_index-null