Pepa's Playground, Agentic UI Engineering, Frontend EngineeringPepkata Logo
  • Home
  • Markets
  • Insights
  • Experiments
Logo

Built with

Linkedin

Logo

Github

Logo
©2026 YouPan.All Rights Reserved.
Back to Insights
Article10 min readApril 2026

How Does a Blockchain Actually Work? (Blocks, Chains, and the Magic in Between)

You already know why cryptocurrency exists — the crisis, broken trust, and the idea of money without a middleman.

This piece is the next step: how blocks, hashes, and consensus let thousands of computers agree on one history — with no bank in the middle.

Blockchain network visualisation

You Already Know the Why — Now Let's See the How

In the previous article we covered why Bitcoin was invented — the 2008 crisis, broken trust, and Satoshi Nakamoto's radical idea of money without a middleman.

But there's a question that naturally follows: how does it actually work?

If there's no bank keeping the records, how does everyone agree on who owns what? How do you stop someone from changing history? How do thousands of computers stay in sync without anyone in charge?

The answer is the blockchain. And once you understand how it works, it clicks in a way that never leaves you.

Start With a Block

Everything begins with a block.

Think of a block as a page in a shared notebook. Each page records a batch of recent transactions — who sent how much to whom. A typical Bitcoin block contains several thousand transactions and is added roughly every 10 minutes.

Every block contains three key things:

WhatWhy it matters
Transaction dataThe actual record of who sent what
A timestampWhen this block was created
A hashA unique fingerprint of this block's contents

That last one — the hash — is where the magic starts.

What is a Hash?

A hash is a fixed-length string of characters generated by running data through a mathematical function. It looks something like this:

a3f8c2d9e1b74...

The key property of a hash: change anything in the input, and the output changes completely. Even altering a single character produces an entirely different hash.

This makes hashes perfect for detecting tampering. If someone tries to change a transaction inside a block — even by one digit — the block's hash changes immediately. The forgery is instantly visible.

Think of it like a wax seal on a letter. The seal doesn't tell you what's inside, but it tells you whether anyone has opened it.

How Blocks Form a Chain

Here's where it gets clever.

Each block doesn't just contain its own hash — it also contains the hash of the previous block. This is what creates the chain.

Block 1                Block 2                Block 3
-----------            -----------            -----------
Transactions           Transactions           Transactions
Hash: a3f8c2...   →   Prev: a3f8c2...   →   Prev: 9d2e71...
                       Hash: 9d2e71...        Hash: 4bc109...

Because each block references the one before it, they are permanently linked in sequence. If someone tries to alter Block 1, its hash changes — which means Block 2's reference is now wrong — which breaks Block 3, and every block after it.

To rewrite history, you would need to redo every block that follows. And you'd need to do it faster than the rest of the network is adding new blocks. With thousands of computers running simultaneously, that is practically impossible.

This is why the blockchain is described as immutable — once something is written, it cannot be changed without everyone noticing.

Who Adds the Next Block?

So far so good — but there's still a question: if anyone can participate in the network, who gets to write the next page of the notebook?

This is the consensus problem, and it's the same challenge Satoshi solved with the Byzantine Generals analogy from Article 1.

The answer is a set of rules called a consensus mechanism. There are two main ones:

Proof of Work (Bitcoin)

Computers compete to solve a complex mathematical puzzle. The first one to solve it earns the right to add the next block — and receives newly created Bitcoin as a reward.

This process is called mining. It requires real computational effort, which costs real energy and money. That cost is what makes cheating expensive — to rewrite history, you'd need to redo all that work, faster than the rest of the network.

Proof of Stake (Ethereum and others)

Instead of competing with computing power, participants lock up some of their own cryptocurrency as collateral — called staking. The network randomly selects who gets to add the next block, weighted by how much they've staked.

If they try to cheat, they lose their stake. The financial risk replaces the energy cost.

Proof of WorkProof of Stake
Used byBitcoinEthereum, Solana, others
Security throughComputational effortFinancial stake
Energy useHighLow
Proven track record15+ yearsGrowing

Both achieve the same goal: making it more costly to cheat than to play honestly.

The Network Agrees — Without Anyone in Charge

Here's the part that surprises most people.

There is no central server. No headquarters. No administrator. The Bitcoin network is just thousands of computers around the world — called nodes — each holding a complete copy of the blockchain.

When a new block is added, it propagates across the network. Every node checks it independently: are the transactions valid? Does the hash check out? Does it follow the rules?

If the majority of nodes agree it's valid, the block is accepted and added to everyone's copy. If something is wrong, it's rejected.

This is what decentralisation actually means in practice — not just a buzzword, but a specific technical architecture where no single point of failure exists and no single party can unilaterally change the rules.

Why This Matters

Take a step back and think about what this achieves.

A traditional database is controlled by whoever owns the server. They can edit it, delete records, freeze accounts, or shut it down. You have to trust them not to.

A blockchain replaces that trust with mathematics and distributed consensus. The rules are enforced by code. The history is permanent. And anyone, anywhere, can verify it independently.

That's not just a technical improvement — it's a fundamentally different relationship between people and their money.

Conclusion

A blockchain is simply a chain of blocks, where each block contains transactions and a fingerprint of the previous block. Change anything, and the chain breaks. Add anything new, and the whole network has to agree.

No bank. No administrator. No single point of control.

It's a simple idea that took decades of cryptography research to make work — and Satoshi Nakamoto put it all together in 2008 at exactly the moment the world needed an alternative.

Part of the Bitcoin & Blockchain beginner series on whatitis.dev/insights.

Up next in the series

Article 4Live

Proof of Work vs Proof of Stake — Who Gets to Write the Ledger?

The two big consensus mechanisms explained simply. Bitcoin vs Ethereum, the energy debate, and how the network decides who adds the next block — without a central authority.

ConsensusMiningStakingEnergy
Read next
Back to all articles