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
const merkleTree = await sdk.getMerkleTree(["leafHash1", "leafHash2", "leafHash3"]);
console.log("Merkle Tree:", merkleTree);Last updated