How Does the Blockchain Work?

The blockchain is a public ledger of every Bitcoin transaction ever made, stored as a chain of blocks. Each block contains a batch of transactions plus a cryptographic fingerprint (hash) of the previous block. This chaining means that altering any block would invalidate every block after it - making the entire history tamper-evident without requiring any central authority to enforce it.

The blockchain is Bitcoin's core innovation. It solves a problem that stumped computer scientists for decades: how to get a group of strangers to agree on a shared record of truth without trusting any single party to maintain it.

What Is a Block?

A block is a container for Bitcoin transactions. Each block contains:

What Is a Hash and Why Does It Matter?

A hash is a fixed-length fingerprint produced by running data through a mathematical function (Bitcoin uses SHA-256). Three properties make hashing critical to the blockchain:

Because each block contains the hash of the previous block, any change to a historical block would change its hash, which would break the next block's reference to it, which would break every subsequent block. The entire chain would need to be recomputed from the point of alteration.

Why Can't Anyone Change the Blockchain?

Rewriting a confirmed block requires redoing its proof of work - the computationally expensive puzzle miners solve to add blocks. But it's not just one block: you'd need to redo the work for every block after it too, while simultaneously outpacing the honest network that's continuously adding new blocks at full hash rate.

At Bitcoin's current scale, this requires more computing power than all the world's mining operations combined. It is economically self-defeating even if it were technically achievable.

Who Holds Copies of the Blockchain?

Thousands of Bitcoin nodes worldwide each maintain a complete, independent copy of the entire blockchain. When a new block is mined, it propagates across the network and every node verifies it against the rules. There is no master copy - every node is equally authoritative. This is what makes Bitcoin decentralized.

What Is a Bitcoin Transaction on the Blockchain?

A Bitcoin transaction is a digitally signed instruction to move Bitcoin from one address to another. It specifies inputs (where the Bitcoin is coming from), outputs (where it's going), and a fee for miners. Once a transaction is included in a confirmed block and buried under several more blocks, it is considered permanently settled.

See the Blockchain Animated in 3D

Bitcoin From Scratch uses 3D animation to show you exactly how blocks chain together, how hashing works visually, and why the blockchain is immutable. Abstract concepts become obvious when you can see them.

Start Bitcoin From Scratch - $97

Frequently Asked Questions

What is a blockchain in simple terms?
A blockchain is a chain of data blocks where each block contains a set of transactions and a reference to the previous block. This chaining makes it so that altering any block would break every block that came after it, making the entire history tamper-evident.
What is a hash and why does it matter?
A hash is a fixed-length fingerprint produced by running data through a mathematical function. Any change to the input - even one character - produces a completely different hash. Each block includes the previous block's hash, so changing any historical block breaks every block after it.
Who controls the Bitcoin blockchain?
No single entity controls the Bitcoin blockchain. It is maintained by thousands of nodes worldwide, each holding a full copy. No company, government, or individual can alter it unilaterally.
Can the Bitcoin blockchain be hacked?
The Bitcoin blockchain has never been successfully hacked. Changing a confirmed transaction would require redoing proof of work for that block and every block after it, faster than the entire honest network - computationally infeasible at Bitcoin's current scale.
How long does a Bitcoin transaction take to confirm?
Bitcoin produces a new block about every 10 minutes. A transaction gets its first confirmation in roughly 10 minutes. Most services consider 6 confirmations (about 1 hour) as fully settled.