4๏ธUpdate Whitelist

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

address: terra1x46rqay4d3cssq8gxxvqz8xt6nwlz4td20k38v
round: 1
total: 1

Check Whitelist Address

This command will check total remaining number that this address can mint in current round.

Param
Required
Example
Description

-d, --data <string>

true

data

Data folder that will store created NFT contract information

-a, --address <string>

true

terra1x46rqay4d3cssq8gxxvqz8xt6nwlz4td20k38v

Terra address

-n, --network <string>

true

testnet

Terra network. (localterra, testnet and mainnet)

npx ts-node src/candy-machine-cli.ts eligible -d data -a terra1x46rqay4d3cssq8gxxvqz8xt6nwlz4td20k38v -n testnet

After checking whitelist successfully you will be greeted with

address: terra1x46rqay4d3cssq8gxxvqz8xt6nwlz4td20k38v
total: 8

Set Whitelist Round

This command will change round of candy machine contract.

npx ts-node src/candy-machine-cli.ts set-round -d data -r 2 -n testnet
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)

-r, --round <number>

true

2

Round number

After setting whitelist round successfully you will be greeted with

update round complete: F28BE68BEF511006036319AA0BB6986AA3BF6D620B9C3995A4770680EF354E1E

Open Candy Machine with Public Round

This command will change round of candy machine to public round

npx ts-node src/candy-machine-cli.ts open-public-round -d data -n testnet
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)

After opening successfully you will be greeted with

open public round complete: E6FEC2279E05B45CC84F15F3BB49D77976AA025C16AD80911793CEDE9CFA1AE0

Close Candy Machine with Public Round

npx ts-node src/candy-machine-cli.ts close-public-round -d data -n testnet
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)

After closing successfully you will be greeted with

close public round complete: 698F536593A3C01220B82EDD8F20E5575AE78FB69B3CBE28FFEBA3111BFF9C3D

Last updated