# Building the Transaction Merkle Tree

When two TXIDs are **concatenated** and **hashed**, the output depends on the **order** in which they were combined.

This order sensitivity means that the **Merkle Tree** can verify both:

* The **specific contents** of each transaction, and
* The **relative order** of transactions within a block.

As more transactions occur, the Merkle Tree grows — adding each new TXID as a **leaf node**.

After every update, the **Merkle Root** (a 32-byte hash) is recalculated, representing the **entire set of transactions** in the block.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hub.bsvblockchain.org/higher-learning/bsv-academy/bitcoin-primitives-merkle-trees/merkle-trees-in-bitcoin-and-bsv/building-the-transaction-merkle-tree.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
