Soil Protocol
  • 🌱Introduction
    • Getting Started
  • Be your own Launchpad
    • 🐇Introduction
    • 1️Preparing Your Asset
    • 2️Creating Candy Machine
    • 3️Configure Candy Machine
    • 4️Update Whitelist
    • 5️Integrate With Minting Website
  • NFT Tooling
    • 🐇Introduction
    • ✍️NFT Holder Snapshot
    • 🪂Airdrop New NFT
    • 🏅NFT Information and Rarity
  • Appendix
    • 🔮Contact Us
Powered by GitBook
On this page
  • Set Whitelist
  • Get Single Address Whitelist
  • Check Whitelist Address
  • Set Whitelist Round
  • Open Candy Machine with Public Round
  • Close Candy Machine with Public Round
  1. Be your own Launchpad

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
PreviousConfigure Candy MachineNextIntegrate With Minting Website

Last updated 2 years ago

4️