All articles
Web3 FoundationsJuly 1, 20269 min read

How Does a Blockchain Actually Work? A Plain-English Guide

How does blockchain work? A security auditor explains the shared ledger thousands of strangers keep honest, why cheating it is a losing trade, and what a block really is.

By Carlos (Bloqarl)

TL;DR

  • A blockchain is a shared notebook that thousands of strangers each keep a full copy of, so no single person, company, or government owns the record.
  • Every so often, new transactions get bundled into a block, and each block is chained to the one before it, so you cannot quietly rewrite old pages without everyone noticing.
  • Nobody is in charge, yet everyone stays honest because the copies are constantly compared. If your copy disagrees with the crowd, the crowd's version wins and yours is ignored.
  • Cheating is not blocked by a security guard. It is blocked by math and money: rewriting the record costs far more than you could ever steal, so it is a losing trade.
  • The famous "51% attacks" on Ethereum Classic in 2020 prove the point. A small network was cheap enough to briefly out-vote. Nothing was "hacked." The rules worked exactly as designed. It was just cheap to rent the muscle.

How does a blockchain work, in one sentence?

A blockchain is a shared record of who owns what and who sent what, kept as identical copies by thousands of independent computers that constantly check each other, so no single party can control it or secretly change the past.

That is the whole idea. Everything else, mining, staking, consensus, is just the machinery that keeps all those copies in agreement without a boss in the middle.

How does a blockchain work, step by step?

Forget the jargon for a minute and picture a shared notebook.

Imagine a group of thousands of strangers, spread all over the world, who all keep the exact same notebook. The notebook only records one kind of thing: transfers. "Alice sends 5 coins to Bob." "Bob sends 2 coins to Carol." Nobody owns the master copy, because there is no master copy. There are thousands of identical copies.

Here is what happens when someone wants to move money:

  1. You announce a transaction. You tell the network, "I want to send 5 coins to Bob." You sign this announcement with a secret key that only you have, which proves it really came from you. (We cover that signing step in how crypto transactions work.)
  2. The network hears it. Thousands of computers, called nodes, receive your announcement and hold it in a waiting room of pending transactions.
  3. Transactions get bundled into a page. Every so often, one participant collects a batch of waiting transactions and packages them into a single block, which is just one page of the shared notebook.
  4. The page gets sealed and added. That new page is locked and glued onto the end of all the previous pages. This is the "chain" in blockchain: page after page, in order, each one pointing back to the one before it.
  5. Everyone updates their copy. Every node adds the same new page to its own notebook. Now all the copies match again, and Bob officially has his 5 coins.

Repeat this forever, one page at a time, and you have a blockchain: a running history of every transfer that ever happened, copied thousands of times over, with no company in the middle.

What is a block?

A block is one page in that shared notebook. It holds two things that matter for a beginner:

  • A batch of transactions. All the "Alice sends Bob" lines that happened recently, grouped together.
  • A fingerprint of the page before it. Each block carries a short code, a kind of digital wax seal, that is calculated from the entire previous block. Change even one letter on an old page, and its fingerprint changes, which breaks the seal on the next page, which breaks the seal on the page after that, all the way down the chain.

That chaining is the quiet genius of the design. The blocks are not just stacked in a pile. They are linked, each one mathematically stamped with a summary of everything that came before. You cannot slip a fake line into page 500 without also redoing pages 500, 501, 502, and every page since, on thousands of computers at once, faster than the network is adding new pages. That is not a rule someone enforces. It is just the shape of the thing.

Why can't the blockchain be hacked or changed?

This is the question everyone asks, and the honest answer surprises people: it can be attacked, in theory. It just almost never makes financial sense. Let me explain both halves.

First, the "why it holds" half. Because thousands of nodes each keep a full copy and constantly compare notes, changing the record means changing it on a majority of those copies at the same time. There is no single database to break into. There is no admin password. If you rewrite your own copy to say you have a million coins, every honest node compares your version against the crowd's version, sees they disagree, and ignores yours. You did not hack anything. You just talked to yourself.

To actually force a change, you would need to control more than half of the network's decision-making power, so that your fake version becomes the majority version. That is the famous "51% attack." And here is the part beginners rarely hear:

Cheating a healthy blockchain is a losing trade.

To out-vote a large network like Bitcoin or Ethereum, you would need to buy or rent an astronomical amount of computing power or staked coins, spend enormous sums on electricity or capital, and keep spending it for as long as you want the lie to stick. The moment people noticed the attack, the value of the coin you were trying to steal would likely collapse, so the prize shrinks even as the cost balloons. You would spend a fortune to steal something that becomes worthless the instant you steal it.

The blockchain is not safe because a guard is watching. It is safe because the rules make honesty the cheapest option and cheating the most expensive one. On big networks, the math is lopsided by design: the reward for cheating is smaller than the bill.

What keeps everyone honest?

Since nobody is in charge, what stops a bad actor from writing a fake page? Two forces, working together.

The first force is agreement, the process nerds call a consensus mechanism. Before a new page is accepted, the network has to agree it is valid. Different blockchains agree in different ways, but the two you will hear about most are:

  • Mining (Proof of Work). Participants burn real electricity racing to solve a hard math puzzle. Winning the race earns the right to add the next page, plus a reward. Solving the puzzle is expensive, which is exactly the point: it makes faking pages costly.
  • Proof of Stake. Instead of burning electricity, participants lock up their own coins as a deposit. Add an honest page, keep your deposit and earn a reward. Try to cheat, lose the deposit. Your own money is the collateral for your honesty.

The second force is replication. Because the ledger is a distributed ledger, copied across thousands of independent nodes, no single one of them has to be trusted. They keep each other honest by comparison. A lone cheater is not fighting one referee; they are fighting the entire crowd's copy of the truth at once.

Put those two forces together and you get the strange, beautiful result: a system with no boss that strangers who have never met still trust, because trusting the crowd is safer than trusting any one person.

Has a blockchain ever actually been out-voted? The Ethereum Classic story

Yes, and it is worth understanding, because it proves the model rather than breaking it.

In 2020, a smaller blockchain called Ethereum Classic was hit by several 51% attacks. Ethereum Classic is a much smaller network than Bitcoin or Ethereum, which means the total muscle securing it was far smaller too. And that is the whole story: because the network was small, an attacker could rent enough computing power for a short window to briefly control the majority, out-vote the honest participants, and rewrite some recent pages to their benefit.

Here is the crucial part for a beginner. Nothing was "hacked." No password was stolen. No bug in the code was exploited. The rules ran exactly as written. The attacker simply did the one thing the rules always allowed, which is: if you control the majority, the majority version wins. On a large network that is prohibitively expensive. On a small one, it was cheap enough to be worth trying.

The lesson is not "blockchains are broken." The lesson is that a blockchain's security is only as strong as the cost to out-vote it. Big networks are safe because renting that much muscle would cost more than any prize. Small networks are safer to leave alone. Same rules, different price tag. (This is one reason security folks care so much about network size, and it connects to the broader picture in why crypto gets hacked and Layer 1 vs Layer 2.)

Related questions

Is a blockchain the same as Bitcoin? No. Bitcoin is one blockchain, the first famous one. A blockchain is the general idea of a shared, chained ledger kept by many computers. Bitcoin, Ethereum, and thousands of others each run their own blockchain. If Web3 is new to you, start with what is Web3.

Who owns the blockchain? Nobody, and that is the point. There is no company, server room, or CEO behind a public blockchain. It lives as thousands of copies on independent computers around the world, which is exactly why no single party can shut it down or rewrite it alone.

Can someone delete my transaction once it's on the blockchain? Practically speaking, no. Once a transaction is buried under many later blocks, undoing it would mean redoing all those blocks faster than the whole network builds new ones. On a healthy network, that is far too expensive to be worth it, which is why people say the record is effectively permanent.

What's the difference between a blockchain and a smart contract? The blockchain is the shared record. A smart contract is a program that runs on top of it, automatically moving value when its conditions are met. Blockchain is the notebook; a smart contract is a rule written into the notebook that enforces itself.

Do I need to run a node or mine to use a blockchain? No. Most people interact through a wallet, which talks to the network for you. Running a node or mining is optional and mostly for people who want to help secure the network or verify everything themselves.

Where to go next

A blockchain is not magic and it is not unbreakable. It is a shared notebook that thousands of strangers each copy, chained page by page so the past cannot be quietly rewritten, and kept honest by a simple deal: cheating costs more than it pays. When a small network like Ethereum Classic got out-voted in 2020, it did not break that deal. It confirmed it. The rules worked. The muscle was just cheap.

The best way to make this click is to walk it hands-on, one step at a time. Your First 90 Days in Web3, a free guided course by the security firm Zealynx, does exactly that. The checkpoint below, "The Ledger Nobody Owns," takes about twenty minutes, needs no account, and turns this article into something you can actually see working.

Tagged

BlockchainCrypto for BeginnersWeb3