> 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/getmerkleroot.md).

# getMerkleRoot

**Description**\
The `getMerkleRoot` method computes the Merkle root 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 Merkle root.

**Example**

```typescript
const merkleRoot = await sdk.getMerkleRoot(["leafHash1", "leafHash2", "leafHash3"]);
console.log("Merkle Root:", merkleRoot);
```
