Overview

The near.staking.pool_balances_daily model provides daily snapshots of staking validator pool balances and share information. It captures the end-of-day state for each validator pool based on the epoch events and stake balances change when delegators perform actions to alter (increase/decrease) their stake. It includes all validators, including idle and inactive validators.

The model is updated daily.

Key Features

Daily Aggregation

  • Captures the final state of each pool at the end of each day
  • Provides a consistent view for day-over-day comparisons
  • Simplifies time-series analysis of pool metrics

Balance Tracking

  • Monitors both NEAR and USD-denominated balances
  • Maintains precision with string representations
  • Tracks exchange rates for historical value analysis

Share Management

  • Records total shares outstanding
  • Tracks share-to-NEAR exchange rates
  • Enables accurate calculation of delegator positions

Column Description

Unique Key: date, pool_id

ColumnTypeDescription
dateTIMESTAMPDate of the balance snapshot
pool_idSTRINGIdentifier of the staking pool
balance_strSTRINGPool’s NEAR balance (string format for precision)
balanceFLOATPool’s NEAR balance (float format)
usd_balanceNUMERICUSD equivalent of the pool’s NEAR balance
usd_exchange_rateNUMERICNEAR to USD exchange rate
shares_strSTRINGTotal shares in the pool (string format)
sharesNUMERICTotal number of shares in the pool
shares_exchange_rateNUMERICExchange rate between shares and NEAR
last_activity_block_timestampTIMESTAMPTimestamp of the pool’s last activity

Use Cases

This model is particularly useful for:

  • Historical analysis of validator performance and stake distribution trends
  • Day-over-day pool comparisons and growth tracking
  • Simplified time-series analysis for staking metrics and delegation patterns