bitcoin.core Table: fact_blocks Type: View
Description
This table contains the complete block header data for all Bitcoin blocks, providing the foundational blockchain structure information. Each row represents a single block with its associated metadata including mining difficulty, proof-of-work parameters, transaction counts, and cryptographic commitments. The data includes all essential block header fields such as timestamp, hash, difficulty, nonce, and Merkle root, which are critical for understanding Bitcoinâs consensus mechanism and blockchain integrity.Key Use Cases
- Mining difficulty analysis and network hash rate trends
- Block time analysis and network performance monitoring
- Blockchain fork detection and chain validation
- Transaction throughput analysis by block
- Mining pool performance and block discovery patterns
- Network security analysis through proof-of-work metrics
- Historical blockchain growth and development tracking
Important Relationships
- Primary source for all block-level analytics in the Bitcoin ecosystem
- Referenced by
core.fact_transactionsto provide block context for transaction analysis - Used by
core.fact_inputsandcore.fact_outputsto establish block-level relationships - Supports
gov.ez_miner_rewardsfor mining reward calculations and analysis - Provides foundational data for
stats.ez_core_metrics_hourlyaggregated metrics
Commonly-used Fields
block_timestamp: Essential for time-series analysis and trend detectionblock_number: Primary field for chronological ordering and gap detectionblock_hash: Critical for blockchain integrity verification and fork analysisdifficulty: Key metric for understanding network security and mining economicstx_count: Important for transaction throughput and network activity analysischainwork: Essential for determining the canonical chain in fork scenariosmerkle_root: Critical for transaction inclusion verification and SPV operations
Columns
| Column Name | Data Type | Description |
|---|---|---|
| BLOCK_TIMESTAMP | TIMESTAMP_NTZ | The timestamp (TIMESTAMP_NTZ, UTC) of the block that contains this transaction. This value is inherited from the block header and represents when the block was mined and the transaction was confirmed on-chain. |