near.core Table: fact_transactions Type: View
Description
This table contains all transactions processed on the NEAR Protocol blockchain, providing comprehensive transaction metadata including signer and receiver information, gas consumption, fees, and execution status. The data captures the complete transaction lifecycle from submission to finalization, including cryptographic signatures, nonce values, and gas mechanics. This table serves as the primary fact table for transaction-level analytics and provides the foundation for understanding user activity, contract interactions, and network utilization patterns.Key Use Cases
- Transaction volume analysis and network activity monitoring
- User behavior analysis and wallet activity tracking
- Gas consumption analysis and fee optimization studies
- Contract interaction analysis and smart contract usage patterns
- Transaction success rate analysis and failure investigation
- Cross-account transaction flow analysis and network mapping
- Economic analysis of transaction fees and gas pricing
Important Relationships
- Links to
core.fact_blocksthrough block_id for temporal and block context - Connects to
core.fact_receiptsthrough tx_hash for execution outcome details - Provides transaction context for
core.fact_logsandcore.fact_token_transfers - Supports
core.ez_actionsfor detailed action-level analysis - Enables analysis in
defi.ez_dex_swapsanddefi.ez_bridge_activitythrough transaction context - Powers
stats.ez_core_metrics_hourlyfor aggregated transaction metrics
Commonly-used Fields
tx_hash: Essential for unique transaction identification and blockchain verificationblock_timestamp: Primary field for time-series analysis and trend detectiontx_signerandtx_receiver: Critical for user activity analysis and network mappinggas_usedandtransaction_fee: Important for economic analysis and cost optimizationtx_succeeded: Essential for success rate analysis and failure investigationattached_gas: Important for understanding gas mechanics and transaction planningnonce: Critical for transaction ordering and replay protection 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. |
| NONCE | NUMBER | Nonce for transactions. |
| SIGNATURE | TEXT | The signature taken from block headers. |
| TX_RECEIVER | TEXT | The transaction receiver, similar to an origin_to in EVM, but can be a contract OR if a relayer is used, the receiver is the user. This field identifies the account that is the intended recipient of the transaction. In direct transactions, this is typically the contract or account being called. In relay transactions, this represents the end user account that the relayer is acting on behalf of. |
| TX_SIGNER | TEXT | Account that originally signed the transaction, can be a relayer. This field identifies the account that cryptographically signed the transaction, authorizing it to be executed on the blockchain. In relay transactions, this may be a relayer account rather than the end user, while in direct transactions, it represents the actual user or contract initiating the transaction. |
| TX | VARIANT | The transaction’s information. |
| GAS_USED | NUMBER | Gas used for the transaction. This field represents the amount of computational resources consumed to execute the transaction. Gas is measured in units, and the actual cost is calculated by multiplying gas used by the gas price. In raw number format, to adjust divide by POW(10,12). Higher gas usage indicates more complex operations or larger computational requirements. |
| TRANSACTION_FEE | NUMBER | Total fee paid in NEAR to execute this transaction, which is a summation of all fees paid for actions and receipts within the transaction. |