solana.staking.balances_latest table contains the current, latest staking statistics of each stake_account. It is derived from getting the latest record per stake_account from the solana.staking.balances table.
Table Details
| Property | Value |
|---|---|
| Table Name | solana.staking.balances_latest |
| Table Status | Production-Ready |
| Unique Key | address, token_type, token_account |
Search by
stake_account, not delegated_vote_account. This table is keyed on stake_account and holds exactly one row per stake account — it is effectively a stake-account balances-latest table, not a per-validator one. A validator’s delegated_vote_account is repeated across every stake account delegated to it, so filtering WHERE delegated_vote_account = '<vote_account>' returns the many individual delegating stake accounts, not the validator’s aggregate stake. To get a validator-level total, aggregate across stake accounts:SELECT delegated_vote_account, SUM(active_stake) AS total_active_stake
FROM solana.staking.balances_latest
GROUP BY delegated_vote_account
SELECT delegated_vote_account, SUM(active_stake) AS total_active_stake
FROM solana.staking.balances_latest
GROUP BY delegated_vote_account
Table Columns
| Column Name | Data Type | Description |
|---|---|---|
| stake_account | VARCHAR(16777216) | The address of the stake account |
| delegated_stake | FLOAT | Amount of SOL delegated minus rent reserve |
| active_stake | FLOAT | Amount of SOL currently earning rewards |
| inactive_stake | FLOAT | Difference between delegated and active stake |
| total_rewards | FLOAT | Cumulative rewards earned by the stake account |
| delegated_vote_account | VARCHAR(16777216) | Validator vote account address that the stake is delegated to |
| last_activation_epoch | NUMBER(38,0) | The most recent epoch when the stake was activated |
| last_deactivation_epoch | NUMBER(38,0) | The most recent epoch when the stake was deactivated |
| activation_status | VARCHAR(16777216) | Current status of the stake account |
| last_activity_action | VARCHAR(16777216) | The most recent staking action performed |
| last_activity_epoch | NUMBER(38,0) | The epoch when the last activity occurred |
| last_activity_action_info | VARIANT | Additional info about the last activity (JSON/variant) |
| last_activity_block_slot | NUMBER(38,0) | Block slot of the last activity |
| last_activity_block_height | NUMBER(38,0) | Block height of the last activity |
| last_activity_block_timestamp | TIMESTAMP_NTZ(9) | Block timestamp of the last activity |
| last_activity_block_hash | VARCHAR(44) | Block hash of the last activity |
| last_activity_txn_id | VARCHAR(88) | Transaction ID of the last activity |
| last_activity_txn_index | NUMBER(38,0) | Transaction index within the block for the last activity |
| last_activity_instruction_index | NUMBER(38,0) | Instruction index within the transaction for the last activity |
| last_activity_inner_instruction_index | NUMBER(38,0) | Inner instruction index within the instruction for the last activity |
| last_activity_pseudo_global_order | NUMBER(38,0) | Global ordering number for the last activity |
| last_activity_pre_tx_amount | VARCHAR(16777216) | Stake account balance before the last activity (string) |
| last_activity_post_tx_amount | VARCHAR(16777216) | Stake account balance after the last activity (string) |
| last_activity_unique_id | VARCHAR(16777216) | Unique identifier for the last activity record |