Merkle Root of Bitcoin Block

This section describes the Merkle Root of a Bitcoin Block.

The Merkle Root of A Bitcoin block is the hash of all transactoin hashes.

For example, block # 500 of the Bitcoin Test Network has the following Merkle Root and transaction hashes:

  "height": 500,
  "merkleroot": "dd3f288510dd3b632940bd3fb1db162d3ff99b19ddb0c586cfa3ac9a76d42517",
  "tx": [

Here is the algorithm of how to calculate the Merkle Root:

You can try the above algorithm to verify the Merkle Root on block # 500.

Last update: 2018.

Table of Contents

 About This Book

 Introduction of Bitcoin

 Bitcoin Blockchain

 Bitcoin Wallet

 Bitcoin Core

 Bitcoin Transaction

 Bitcoin-Qt - Bitcoin Core GUI

Bitcoin Data Structure

 Data Fields of Bitcoin Block

Merkle Root of Bitcoin Block

 Verify Merkle Root with Python

 Data Structure of Bitcoin Block

 "getblock blockhash 0" - Serialized Hex Blcok Data

 Block Hash Calculation Algorithm

 Block Hash Calculation in Python


 PDF Printing Version