Stargaze
  • Welcome
    • Coming from Ethereum?
    • Coming from Solana?
    • Coming from Coinbase or other exchange?
    • Coming from MANTRA?
  • Introduction
    • What is Stargaze?
    • Meet the Team
  • Core Apps
    • Launchpad
      • Minters
      • Whitelists
      • Minter and Whitelist Fees
    • Marketplace
      • Governance Parameters
    • Names
    • Live Auctions
    • Infinity Swap
      • How it works
      • Price Mechanics
      • Swap
      • Why use Infinity Swap
      • Infinity Swap Fees
      • Examples
    • DAO DAO
    • StarDEX
      • Navigating StarDEX
      • Swapping Tokens
      • Providing Liquidity
      • Pool Analytics & Metrics
      • Managing and Removing Liquidity
  • Creators
    • Launching a Collection on Stargaze
    • Collection Guidelines
    • Content Guidelines
    • Featured Projects
  • Creator Tools
    • Stargaze Studio
      • Create an NFT Collection
        • Upload Assets and Metadata
        • Configure Collection and Minting Details
        • Creating a Standard Collection
          • Upload Assets and Metadata
          • Configure Collection and Minting Details: Standard Collection
          • Whitelist and Royalty Options
        • Creating an Open/Limited Edition Collection
          • Upload Assets and Metadata
          • Configure Collection and Minting Details: OE/LE
          • Whitelist and Royalty Options
        • Creating a 1/1 Collection
          • Upload Assets and Metadata
          • Configure Collection Details: 1/1 Collection
          • Whitelist and Royalty Options
          • Adding Additional Tokens to a 1/1 Collection
        • Creating a Burn to Mint Collection
          • Upload Assets and Metadata
          • Configure Collection and Minting Details: Standard Collection
          • Whitelist and Royalty Options
      • Interact with a Collection
        • Execute Messages
        • Query Data
    • Launching an NFT project via CLI
      • 1. Setup a basic project
        • 1a. Need help?
      • 2. Configure your project
      • 3. Add assets and metadata
        • Pinata Upload
      • 4. Instantiate minter contract on testnet
      • 5. Whitelist
      • 6. Mint from your contract
      • 7. Query contract
      • 8. Testing your contract on testnet
      • 9. Launching on mainnet
        • 9a. Launching on mainnet with Keplr (optional)
    • Create a Multisig Wallet
      • Create a Multisig using Keplr
      • Create a Multisig using DAO DAO
      • Create a Multisig using CLI
    • Stargaze Studio Fees
  • Developers
    • CosmWasm Contracts
      • Contract Code IDs
      • Deploy to Testnet
      • Deploy to Mainnet
    • Stargaze API
    • Indexers
      • Constellations
      • SubQuery
    • Token Factory
    • Minting and Trading Denoms
  • Tokenomics
    • STARS Token
    • Fair Burn
    • Real Yield
    • Governance
  • Nodes & Validators
    • Getting Setup
    • Running a Full Node
    • Setting up Cosmovisor
    • Running a Validator
    • Configuring StateSync
    • Running a Relayer
    • Foundation Delegation Program
  • Extras
    • FAQ
    • Stargaze Assets
    • Ranking and Algorithms
Powered by GitBook
On this page
  • Instantiate a whitelist contract
  • Unit Price and Per Address Limit
  • Add to whitelist
  • Add to whitelist with file
  • Increase member limit
  • Show whitelist configuration
  • Add whitelist to minter contract
  1. Creator Tools
  2. Launching an NFT project via CLI

5. Whitelist

Instantiate a whitelist contract

First, edit config.js and fill in whitelist addresses in whitelist, and add the times you want the whitelist to start and end.

If you don't have all addresses for the whitelist right now, don't worry as you can always add more later.

Whitelist creation has a 100 to 400 STARS network fee. 50% of this fee is burned, while the other half is sent to the Community Pool. In the future, this half will be distributed to Stargaze stakers.

Whitelist minimum mint price is 25 stars.

Instantiate a whitelist contract with:

yarn whitelist

Make of note of the contract address in the output of the above command. Edit config.js and use this address for whitelistContract.

Unit Price and Per Address Limit

You can set a different price and per address limit for the duration of the whitelist period, edit config.js and set the fields accordingly.

Add to whitelist

You can always add more addresses to the whitelist with:

yarn whitelist

Save whitelist address to config.js

Add to the whitelist with:

yarn whitelist --add 'address1,address2,address3,...address100'

Add to whitelist with file

You can also add to the whitelist by file upload. First copy whitelist_addresses.example.csv to whitelist_addresses.csv with 1 address per line. You can add up to 1,000 addresses at a time.

yarn whitelist-file

You may see an error about exceeding member limit. You may need to increase the whitelist member limit.

Increase member limit

Instantiating your whitelist contract, there is a field for member_limit in config.js You may need increase the whitelist member limit if there are more whitelist addresses than expected. Increasing member limit may incur additional upgrade fees. You will see an IncorrectPaymentAmount error and include a fee in the message. This will require modifying the transaction message, commenting and uncommenting the code blocks. Upgrade fees happen when the number of addresses reaches 1, 1001, 2001, 3001, 4001.

yarn whitelist --increase-member-limit 2000

Show whitelist configuration

yarn whitelist --show-config

The whitelist can have a maximum of 5,000 addresses.

Add whitelist to minter contract

Don't forget to set the whitelist to the minter contract.

Feel free to add, remove members or update start time, end time. Once whitelist starts you can not make any more updates.

ex: adding stars1whitelistaddr (your whitelist address will be different)

yarn minter --whitelist stars1whitelistaddr
Previous4. Instantiate minter contract on testnetNext6. Mint from your contract

Last updated 1 year ago