A block can contain thousands of transactions. How can a light wallet check that a payment is in a block without downloading all of them? The answer is a clever structure called a Merkle tree, named after computer scientist Ralph Merkle.
In this article
How it is built
- Hash every transaction.
- Pair up the hashes, join each pair and hash them again.
- Repeat with the new hashes until one remains.
That final hash is the Merkle root, and it is stored in the block header. If any transaction changes, the root changes.
A tiny example
With four transactions A, B, C, D: hash each to get HA, HB, HC and HD. Combine HA and HB to make HAB, and HC and HD to make HCD. Combine those to get the root HABCD.
Proving a transaction is included
To prove that A is in the block, you provide HB and HCD. The verifier hashes A, combines it with HB, then with HCD and compares the result to the root in the header. Only a few hashes are needed.

Why it matters
- Efficient verification: light clients, such as mobile wallets, can check payments using the block headers alone. Satoshi called this simplified payment verification.
- Tamper evidence: changing a transaction changes the root and breaks the block.
- Less data to store: old transactions can be pruned while keeping the root.
Where else it appears
Ethereum uses a related structure called a Merkle Patricia trie to store account balances and state. Merkle trees are also used in file systems, version control and certificate transparency.
Limits
A Merkle proof shows that a transaction is in a block, not that the block is valid. You still need to trust the longest chain or other verification.
The bottom line
A Merkle tree lets you prove membership in a huge set with a short proof. It is a small idea with a big effect on how light wallets work.
This article is for educational purposes only and is not financial advice. Crypto assets are volatile and you can lose some or all of your investment.