Blockchain concepts explained with care and context.

BIP 34 Puts a Block Height Inside the Coinbase Transaction

A bitcoin developer desk with notebook containing abstract block shapes and a small plain hardware device, no coins, prices, or legible code.
AI-generated photographic illustration; not documentary photography.

A Bitcoin block has a place in a chain, but that position is not the same thing as its hash. Block height counts the block’s distance from the genesis block, whose height is zero. BIP 34 made that height part of the coinbase transaction under its deployed consensus rule.

The BIP 34 specification places the height as the first item in the coinbase input’s scriptSig. Here, “coinbase” means the special transaction created by the miner in a block; it is not a reference to a trading platform.

Location matters when reading raw data

The height is not simply a printed decimal label in the block header. It is encoded within the transaction structure. A block explorer may display a friendly height field, but that display is an interpretation of data and chain context rather than a picture of the exact bytes.

BIP 34’s stated motivations include enforcing uniqueness and assisting validation. Including height makes coinbase transactions at different heights differ in this required item. It does not mean that only one candidate block can ever exist at a particular height.

A small reading exercise

Open a reputable block explorer and choose a confirmed block. Record three separate observations: its displayed height, its block hash, and the coinbase transaction. Then locate the decoded coinbase input information, if the explorer provides it.

Do not confuse the block hash with a transaction identifier, or the block’s position with the number of confirmations shown later. Those fields answer different questions. If you examine raw bytes, use the specification’s encoding rules rather than assuming the decimal number should appear as readable text.

This exercise is about protocol structure, not a method of valuing an asset or predicting a market. Its benefit is simple: when a tool says “height in coinbase,” you know which object contains the information and why a friendly explorer label is only one view of the underlying record.