Key takeaways
- A blockchain is a list of transaction batches, called blocks, where each block contains a fingerprint (hash) of the one before it.
- Because every block points to its parent’s hash, changing an old transaction would change every block after it, which honest computers would reject.
- Thousands of independent computers, called nodes, keep full copies and check every rule themselves.
- A consensus mechanism, such as proof of work or proof of stake, decides who adds the next block and makes rewriting history expensive.
Most explanations of how blockchains work stop at “a shared ledger.” That is true but not very useful. The interesting part is how strangers on the internet manage to agree on one version of that ledger, and why nobody can quietly edit it afterwards. This guide takes it piece by piece, using bitcoin as the main example because it is the simplest, with notes on how Ethereum differs.
If you are completely new, start with What Is Cryptocurrency? and come back.
The problem a blockchain solves
Digital money has an obvious weakness: files can be copied. If a coin is just data, what stops someone from sending the same coin to two people? Banks solve this by keeping one central ledger and deciding what is valid. A blockchain solves it without a central party by having many computers keep the same ledger and follow the same rules for adding to it. The bitcoin whitepaper called this the double-spending problem and proposed a “peer-to-peer distributed timestamp server” as the fix.
Step 1: transactions
Everything starts with a transaction, a signed message that says, in effect, “move these coins from me to this address.” The signature is created with the sender’s private key and can be checked by anyone using the sender’s public key, without the private key ever being revealed. A node that receives a transaction checks that the signature is valid and that the coins exist and have not already been spent. If it passes, the node passes it on to other nodes. Valid transactions waiting to be included in a block sit in each node’s waiting area, called the mempool.
Step 2: blocks
Transactions are added to the ledger in batches called blocks. On bitcoin a new block arrives roughly every 10 minutes. On Ethereum, a block slot comes every 12 seconds. A block has two parts:
- The header, a small summary that includes the hash of the previous block, a timestamp, a single hash that summarizes all the transactions (the Merkle root) and, on proof of work chains, a number called the nonce.
- The body, the list of transactions themselves.
Step 3: hashes, the glue of the chain
A hash function takes any input and produces a fixed-size fingerprint. Bitcoin uses SHA-256, which always outputs 256 bits. Good hash functions have three useful properties: the same input always gives the same output, a tiny change in the input produces a completely different output, and you cannot work backwards from the output to the input.
Each block header includes the hash of the previous block’s header. That creates the chain.
This is why blockchains are called tamper-evident. If someone altered a transaction in an old block, that block’s hash would change. The next block would no longer point to it, so every node would immediately see the chain as invalid unless the attacker also rebuilt every block that came after, faster than the rest of the network keeps adding new ones.
Merkle trees in one paragraph
A block can hold thousands of transactions. Instead of hashing them all in one go, transactions are hashed in pairs, then those hashes are paired and hashed again, until one hash remains: the Merkle root. It goes in the header. The benefit is that you can prove a transaction is in a block by showing just a short path of hashes, without downloading the whole block. Lightweight wallets on phones rely on this.
Step 4: nodes, the referees
A node is a computer running the network’s software. Full nodes download every block and check every rule for themselves: signatures, spending limits, block size, the issuance schedule, everything. They do not trust miners, validators or each other. If a block breaks a rule, every honest node rejects it, no matter who produced it.
This is an underrated part of how blockchains work. Miners and validators propose blocks, but nodes decide what counts. It is why bitcoin’s 21 million supply limit cannot be changed by miners alone: a block that paid a miner too much would simply be thrown out.
Step 5: consensus, agreeing on the next block
Many nodes could propose different next blocks at the same moment. A consensus mechanism decides which one wins and makes it costly to cheat.
| Proof of work | Proof of stake | |
|---|---|---|
| Used by | Bitcoin | Ethereum, Solana and most newer chains |
| Who adds blocks | Miners competing to find a valid hash | Validators chosen in proportion to the coins they lock up |
| What it costs to cheat | Huge amounts of electricity and hardware | Staked coins that can be destroyed (slashed) if a validator cheats |
| How settlement works | Probabilistic: each new block makes reversal less likely | Explicit finality after validators vote |
In proof of work, miners repeatedly change the nonce and hash the block header until the result falls below a target set by the network. Finding such a hash takes enormous trial and error, but checking it takes one calculation. The chain with the most accumulated work is treated as the real one. We cover both systems in detail in our upcoming guide to proof of work and proof of stake.
Why rewriting history is so hard
To reverse a confirmed bitcoin payment, an attacker would have to produce an alternative chain that starts before that payment and overtakes the honest chain. That requires more computing power than the rest of the network combined, the so-called 51% attack, and it gets harder with every block added on top. That is why exchanges wait for several confirmations before crediting large deposits.
Proof of stake chains replace computing power with staked capital. Rewriting finalized blocks would require controlling a large share of all staked coins and accepting that a large part of them would be destroyed as a penalty.
How Ethereum’s blockchain differs
Ethereum uses the same basic ideas, blocks linked by hashes and nodes that check every rule, but it records more than balances. It keeps a global state: the balance of every account plus the code and stored data of every smart contract. Each block contains transactions that change that state, and the header commits to the new state with a special hash, so anyone can verify the result of running every contract.
Two other differences matter in practice. Bitcoin tracks coins as unspent outputs, a bit like individual banknotes, while Ethereum tracks accounts with balances, more like a bank statement. And Ethereum switched from proof of work to proof of stake in September 2022, in an upgrade known as the Merge, which cut its energy use by more than 99% according to the Ethereum Foundation.
What blockchains are not good at
- Speed and cost at scale. Every full node repeats every check, which limits how many transactions the base layer can handle. Layer 2 networks exist largely to fix this.
- Privacy. Most public blockchains are transparent. Addresses are not names, but transactions are visible to everyone forever.
- Real-world truth. A blockchain can prove what happened on the chain, not whether an off-chain claim is true. Data from outside needs a trusted bridge or oracle.
- Fixing mistakes. Sending to the wrong address usually cannot be undone.
Putting it together
- You sign a transaction with your private key and broadcast it.
- Nodes check it and add it to their mempools.
- A miner or validator includes it in a new block.
- The block’s header links to the previous block through its hash.
- Nodes check the new block against every rule and add it to their copy of the chain.
- As more blocks are added on top, the transaction becomes practically irreversible.
Once these pieces click, most of crypto starts to make sense, from why fees rise when blocks are full to why layer 2 networks and stablecoins are built the way they are.
You might also like
Sources: Bitcoin whitepaper, Bitcoin developer guide: block chain, ethereum.org: Blocks, ethereum.org: Nodes and clients, ethereum.org: The Merge





