0
   const leaves = whitelistAddresses.map(addr => padBuffer(addr))
      const merkletree = new MerkleTree(leaves, keccak256, {sortPairs: true})
      console.log('merkletree', merkletree.toString())
      const rootHash = merkletree.getHexRoot()
      console.log("root hash", rootHash)

I don't have whitelistAddresses... I have only contractAddress, WalletAddress, roothash. is it posible to get merkleproof without knowing full whitelistAddresses array. or is any other way to get merkle proof without ask anybody?

I want to get merkle proof (bytes32 [])

starball
  • 20,030
  • 7
  • 43
  • 238
Harsh M
  • 1
  • 2

0 Answers0