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

# getMerkleProof

**Description**\
The `getMerkleProof` method generates a Merkle proof for a specific leaf in the Merkle tree.

**Parameters**

* `inputs` (`string[]`): An array of strings representing the hashed leaf nodes of the Merkle tree.
* `index` (`number`): The index of the leaf for which to generate the proof.

**Returns**\
Returns a `Promise` that resolves to a `string[]` containing the Merkle proof (sibling hashes).

**Example**

```typescript
const proof = await sdk.getMerkleProof(["leafHash1", "leafHash2", "leafHash3"], 1);
console.log("Merkle Proof:", proof);
```
