Bitcoin Developer Network

Tutorials for educating the next generation of Bitcoin developers

Calculating the Merkle Root for a block

This tutorial is written to simplify the understanding of how bitcoin uses merkle trees for verification of transaction into a block. A merkle root is created by hashing together pairs of TXIDs, which gives you a short yet unique fingerprint for all the transactions in a block.