typescript-sdk

Home > @3rdweb/sdk > generateRoot

generateRoot() function

Convenience function to generate a merkle root from a list of strings.

Signature:

export declare function generateRoot(items: string[]): string;

Parameters

Parameter Type Description
items string[] Any list of strings that will be hashed and added to the tree.

Returns:

string