> For the complete documentation index, see [llms.txt](https://zpass.docs.aleo.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zpass.docs.aleo.org/zpass-sdk/overview/getmerkletree.md).

# getMerkleTree

**Description**\
The `getMerkleTree` method constructs the complete Merkle tree from a list of input values.

**Parameters**

* `inputs` (`string[]`): An array of strings representing the hashed leaf nodes of the Merkle tree.

**Returns**\
Returns a `Promise` that resolves to a `string` containing the serialized Merkle tree.

**Example**

```typescript
const merkleTree = await sdk.getMerkleTree(["leafHash1", "leafHash2", "leafHash3"]);
console.log("Merkle Tree:", merkleTree);
```
