webflow-nft-components
webflow-nft-components copied to clipboard
Connect whitelist Merkletree
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?
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
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
Has anyone done this successfully?