Create Merkle App
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.sol
with sample code - Includes
merkle_test_script.js
which you can run to test addresses that are in and outside of an array of addresses (ie your allow list) index.js
has pseudocode to call the contract function to mint against your merkle tree
Installation
- Clone the repo
- Run
yarn
to install packages - Run
yarn dev
to start a server oryarn dev -p SOME_PORT_ID
to start a server on a different port
Resources
- https://medium.com/@ItsCuzzo/using-merkle-trees-for-nft-whitelists-523b58ada3f9
- https://github.com/miguelmota/merkletreejs
Special Thanks
- InfernalToast and this repo
- 0x113d and the Mathcastles Discord
Questions? Hit me up on Twitter.