Skip to main content

IMerkleTreeStorage.addToMerkleTree() method

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

adds entry to merkle tree

Signature:

addToMerkleTree(identifier: string, mtType: MerkleTreeType, hindex: bigint, hvalue: bigint): Promise<void>;

Parameters

ParameterTypeDescription
identifierstringidentifier to which tree belongs
mtTypeMerkleTreeTypemerkle tree type
hindexbiginthash index
hvaluebiginthash value

Returns:

Promise<void>

Promise<void>