near.gov Table: fact_staking_actions Type: View
Description
This table contains all staking-related transactions on the NEAR Protocol blockchain, capturing staking actions such as deposits, withdrawals, and reward distributions. The data includes staking amounts, action types, and associated metadata, providing comprehensive tracking of staking participation and validator interactions. This table provides the foundation for staking analytics, validator performance analysis, and governance participation tracking across the NEAR ecosystem.Key Use Cases
- Staking participation analysis and user behavior tracking
- Validator performance analysis and staking pool comparison
- Staking reward analysis and yield optimization
- Staking pattern analysis and trend identification
- Cross-pool staking comparison and performance benchmarking
- Staking pool health monitoring and risk assessment
- Governance participation analysis and voting power tracking
Important Relationships
- Links to
core.fact_transactionsthrough tx_hash for transaction context - Connects to
core.fact_blocksthrough block_id for temporal context - Provides staking data for
gov.ez_staking_actionswith enhanced metadata - Supports
gov.fact_staking_pool_balanceswith action impact analysis - Enables analysis in
stats.ez_core_metrics_hourlyfor staking metrics - Powers cross-pool analysis and validator performance comparison
Commonly-used Fields
tx_hash: Essential for linking to transaction details and verificationblock_timestamp: Primary field for time-series analysis and trend detectionaction: Critical for staking action classification and analysisamount: Important for staking volume analysis and participation trackingaddress: Essential for staking pool identification and analysissigner_id: Important for user behavior analysis and staking patternspredecessor_id: Useful for action flow tracking and context analysis
Columns
| Column Name | Data Type | Description |
|---|---|---|
| TX_HASH | TEXT | Unique identifier (hash) of this transaction. |
| BLOCK_ID | NUMBER | The height of the chain this block corresponds with. |
| BLOCK_TIMESTAMP | TIMESTAMP_NTZ | The date and time at which the block began. |
| RECEIPT_OBJECT_ID | TEXT | Please note this column is being deprecated in favor of simply “receipt_id”. |
| ADDRESS | TEXT | The NEAR address of the staking pool. |
| PREDECESSOR_ID | TEXT | Account that called the relevant receipt (often the same as tx_signer, but can be system as well). This field identifies the account that directly invoked the receipt being processed. In simple transactions, this is typically the same as the transaction signer. However, in cross-contract calls or system operations, this may be a different account or the system account. This is crucial for understanding the call chain and access control in NEAR’s execution model. |
| SIGNER_ID | TEXT | Signer of the receipt, often same as tx_signer, sometimes system in the case of systemic gas refunds. This field identifies the account that has the authority to execute the receipt. In most cases, this is the same as the transaction signer, but in system operations like gas refunds, this may be the system account. The signer is the account that originally signed the transaction that began the blockchain activity, which may or may not include cross-contract calls. |
| ACTION | TEXT | The staking action performed in this transaction. Can be "Stake" or "Unstake" if in the deprecating dim_staking_actions table, or staking, unstaking, deposited, withdrawing if in the new fact_staking_actions table. These method names are taken directly from the log in which they occur. |
| AMOUNT | FLOAT | The amount of tokens transferred |
| If in the ez* view, this number is decimal adjusted to actual amount. If in silver level or a fact* view, the raw amount is presented | ||
| FACT_STAKING_ACTIONS_ID | TEXT | A unique identifier for the record. |
| INSERTED_TIMESTAMP | TIMESTAMP_NTZ | The timestamp at which the record was initially created and inserted into this table. |
| MODIFIED_TIMESTAMP | TIMESTAMP_NTZ | The timestamp at which this record was last modified by an internal process. |