Here are the action that you can do with the whitelist mechanism. Please, make sure that you are in the js/cli directory before you proceed with this step.
Set Whitelist
This command will set whitelist address to candy machine contract.
npx ts-node src/candy-machine-cli.ts set-whitelist -d data -n testnet -w example-assets/whitelist.csv
Param
Required
Example
Description
-d, --data <string>
true
data
Data folder that will store created NFT contract information
-n, --network <string>
true
testnet
Terra network. (localterra, testnet and mainnet)
-w, --whitelist <string>
true
example-assets/whitelist.csv
Whitelist file
After setting whitelist successfully you will be greeted with
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 100% | ETA: 0s | 4/4
set whitelist complete
Get Single Address Whitelist
npx ts-node src/candy-machine-cli.ts get-whitelist -d data -a terra1x46rqay4d3cssq8gxxvqz8xt6nwlz4td20k38v -r 1 -n testnet
Param
Required
Current
Description
-d, --data <string>
true
data
Data folder that will store created NFT contract information
-a, --address <string>
true
terra1x46rqay4d3cssq8gxxvqz8xt6nwlz4td20k38v
Address that want to check for whitelist
-r, --round <number>
true
1
Round number
-n, --network <string>
true
testnet
Terra network. (localterra, testnet and mainnet)
After getting whitelist successfully you will be greeted with