webflow-nft-components icon indicating copy to clipboard operation
webflow-nft-components copied to clipboard

Connect whitelist Merkletree

Open justinsteu opened this issue 3 years ago • 3 comments

How do I link my merkle tree whitelist? When I add the mint-whitelist button and try to mint with it, it says that the address is not whitelisted. How do I link my whitelist?

justinsteu avatar Feb 23 '22 21:02 justinsteu

To do that, you need to fork and update the code to use IPFS whitelist config instead of our backend. See this file on feature/whitelist branch:

https://github.com/buildship-dev/webflow-nft-components/blob/feature/whitelist/src/mint/whitelist/web3.js#L45

caffeinum avatar Mar 12 '22 10:03 caffeinum

How it works now:

Our backend stores merkle tree and returns hashes for a given address (e.g. for my address it works like this):

https://metadata.buildship.dev/api/extensions/merkle-tree/airdrops/0xffE06cb4807917bd79382981f23d16A70C102c3B

How it might work alternatively:

There's an IPFS static file containing merkle tree info for all addresses, and the proof is generated on the frontend using https://github.com/miguelmota/merkletreejs

caffeinum avatar Mar 12 '22 10:03 caffeinum

Has anyone done this successfully?

SerbiusPrime avatar Jul 21 '22 05:07 SerbiusPrime