Skip to main content

Table description

The bitcoin.blocks table represents the blocks in the Bitcoin blockchain. A block is a collection of transactions, and is identified by a block hash. Each block contains a reference to the previous block, forming a chain of blocks. The first block in the chain is called the genesis block.

Table Schema

ColumnTypeDescription
timeTIMESTAMPTimestamp when the block was mined
heightBIGINTSequential block number indicating position in the chain
dateDATEDate of the block, truncated from the timestamp for daily aggregations
hashVARBINARYUnique 256-bit hash identifying this block
bitsVARBINARYCompact representation of the target difficulty threshold
chainworkVARBINARYTotal cumulative proof-of-work performed up to and including this block
difficultyDOUBLEMining difficulty target as a floating-point number
total_feesDOUBLETotal transaction fees (in BTC) collected in this block
total_rewardDOUBLETotal miner reward (in BTC) including block subsidy and fees
mint_rewardDOUBLEBlock subsidy (in BTC) awarded for mining this block
merkle_rootVARBINARYMerkle root hash of all transactions in the block
transaction_countBIGINTNumber of transactions included in this block
nonceBIGINTNonce value used by the miner to satisfy the proof-of-work target
coinbaseVARBINARYArbitrary data included by the miner in the coinbase transaction
previous_block_hashVARBINARYHash of the preceding block in the chain
sizeBIGINTTotal size of the block in bytes
stripped_sizeBIGINTSize of the block in bytes excluding witness data
versionBIGINTBlock version number indicating supported consensus rules
weightBIGINTBlock weight in weight units (max 4,000,000 per block)

Table Sample