[#BlockMerkleRoot]
= BlockMerkleRoot
:mrdocs:

Compute the Merkle root of the transactions in a block&period; &ast;mutated is set to true if a duplicated subtree was found&period;

== Synopsis

Declared in `&lt;consensus&sol;merkle&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:uint256.adoc[uint256]
BlockMerkleRoot(
    xref:CBlock.adoc[CBlock] const& block,
    bool* mutated = nullptr);
----

== Return Value

The Merkle root of the block&apos;s transactions&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *block*
| The block whose transaction hashes form the tree leaves&period;
| *mutated*
| If non&hyphen;null, receives whether a duplicated subtree was found&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
