Staking Overview

The sui.staking.overview model provides a comprehensive view of staking metrics at the epoch level across the entire Sui network.

Staking involves delegating SUI tokens to validators to participate in network consensus. Stakers earn rewards for helping secure the network, while validators earn commission for operating nodes.

Key Concepts

  • Epoch: A time period in Sui (approximately 24 hours) after which rewards are distributed

  • Staker/Delegator: Users who delegate their SUI to validators

  • Validator: Node operators who validate transactions and produce blocks

  • APR: Annual Percentage Rate, the annualized return on staked SUI

Staking Model

Our Sui staking data is organized into the following models:

Model
sui.staking.overviewNetwork-wide staking metrics per epoch. This includes the total SUI staked, rewards, and APR.
sui.staking.validator_stake_latestThe current amount of Sui staked for each staker under each validator.
sui.staking.validator_rewardsDetailed rewards and performance metrics for each validator per epoch.
sui.staking.depositsRecords of all staking deposits made by stakers
sui.staking.withdrawalsRecords of all unstaking events made by stakers

Table Columns

Unique Key: epoch

ColumnDescription
checkpoint_dateDate and time of the checkpoint
epochThe epoch number
protocol_versionVersion of the Sui protocol being used
active_validatorsNumber of active validators in the epoch
avg_validator_commission_rateAverage commission rate across all validators
aprAnnual Percentage Rate for staking (calculated)
stakeTotal amount of SUI staked in the network
staking_rewardTotal staking rewards distributed in this epoch
cumulative_staking_rewardCumulative staking rewards distributed up to this epoch
stake_subsidy_amountAmount of new SUI distributed as staking subsidies
reference_gas_priceNetwork-wide reference gas price for the epoch
total_gas_feesTotal gas fees collected during the epoch
storage_chargeTotal storage fees charged during the epoch
storage_rebateTotal storage rebates returned during the epoch
storage_fund_reinvestmentAmount reinvested into the storage fund
storage_fund_balanceCurrent balance of the storage fund
total_stake_rewards_distributedTotal rewards distributed to stakers in this epoch
leftover_storage_fund_inflowRemaining storage fund inflow after distributions
total_storage_fund_staking_rewardSum of all storage fund staking rewards across validators

APR Calculation

The APR is calculated by dividing the total rewards distributed for the epoch by the total stake and multiplying by 365.25 (accounting for leap years) * 100.