The allowList guard validates the minting wallet against
a predefined list of wallets.
Instead of passing the entire list of wallets as settings,
this guard accepts the Root of a Merkle Tree created from
this allow list. The program can then validate that the minting
wallet is part of the allow list by requiring a Merkle Proof.
Minting will fail if either the minting address is not part of
the merkle tree or if no Merkle Proof is specified.
You may use the getMerkleRoot and getMerkleProof helper
functions provided by the SDK to help you set up this guard.
Here is an example.
Note that you will need to provide the Merkle Proof for the
minting wallet before calling the mint instruction via the
special "route" instruction of the guard.
See AllowListGuardRouteSettings for more information.
This object defines the settings that should be
provided when creating and/or updating a Candy
Machine if you wish to enable this guard.
The allowList guard validates the minting wallet against a predefined list of wallets.
Instead of passing the entire list of wallets as settings, this guard accepts the Root of a Merkle Tree created from this allow list. The program can then validate that the minting wallet is part of the allow list by requiring a Merkle Proof. Minting will fail if either the minting address is not part of the merkle tree or if no Merkle Proof is specified.
You may use the
getMerkleRoot
andgetMerkleProof
helper functions provided by the SDK to help you set up this guard. Here is an example.Note that you will need to provide the Merkle Proof for the minting wallet before calling the mint instruction via the special "route" instruction of the guard. See AllowListGuardRouteSettings for more information.
This object defines the settings that should be provided when creating and/or updating a Candy Machine if you wish to enable this guard.
See
AllowListGuardRouteSettings to learn more about the instructions that can be executed against this guard.