By Backseats
- This is an example app that shows you how to use a Merkle tree for your allow list
- Includes a partial contract
contracts/MerkleExample.solwith sample code - Includes
merkle_test_script.jswhich you can run to test addresses that are in and outside of an array of addresses (ie your allow list) index.jshas pseudocode to call the contract function to mint against your merkle tree
- Clone the repo
- Run
yarnto install packages - Run
yarn devto start a server oryarn dev -p SOME_PORT_IDto start a server on a different port
- https://medium.com/@ItsCuzzo/using-merkle-trees-for-nft-whitelists-523b58ada3f9
- https://github.com/miguelmota/merkletreejs
- InfernalToast and this repo
- 0x113d and the Mathcastles Discord
Questions? Hit me up on Twitter.