Skip to main content

InMemoryMerkleTreeStorage.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 in the memory

Signature:

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

Parameters

ParameterTypeDescription
identifierstring
mtTypeMerkleTreeType
hindexbigint
hvaluebigint

Returns:

Promise<void>