Merkle Proof
merkleTreeGenerator
Generates a merkle tree from the given values.(Values must be in the form of a 2d array). This function is useful for generating a merkle tree for the whitelist collection.
/* Example values
const values = [
["0xFE7Bc9d3DFd961226b621Fc9b10bE7aCECAf497f"],
["0x2d323fBfdc22be7D8E3652CB4032C34eE2E3B667"],
["0x74281479CD10Da178b6cc7180E5C86f89535102e"],
["0x40E6293940Bbc662F01Db48248D73c70f42b716d"],
["0x65792451e86Ca1D9Ba6c164fB7D65B96cB295EC3"],
];
*/
merkleTreeGenerator(values: string[][]): Promise<[StandardMerkleTree<string[]>, string]>
getMerkleProof
Returns the merkle proof for the given address. This function is useful for recieving the merkle proof for the whitelist collection to be used in the mintWithURIWhitelist function.
getMerkleProof(tree: StandardMerkleTree<string[]>, address: string): [string[], string[]] | null