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 transaction hashes.

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

  "height": 500,
  "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: 2017.

Table of Contents

 About This Book

 Introduction of Bitcoin

 Bitcoin Blockchain

 Bitcoin Wallet

 Bitcoin Core

 Bitcoin Transaction

 Bitcoin-Qt - Bitcoin Core GUI

 Bitcoin Mining

 Bitcoin Consensus Rules

Bitcoin Block Data Structure

 Data Components of Bitcoin Block

 Data Properties of Bitcoin Block

Merkle Root of Bitcoin Block

 Calculate Double-SHA256 Hash with Python

 Verify Merkle Root of 2 Transactions

 Verify Merkle Root of 7 Transactions

 Data Structure of Bitcoin Block

 "getblock blockhash 0" - Serialized Hex Block Data

 Block Hash Calculation Algorithm

 Block Hash Calculation in Python

 Calculate Double-SHA256 Hash with Java

 Bitcoin Transaction Data Structure API

 Copay - Bitcoin Wallet


 PDF Printing Version