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