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
  • Mint a specific NFT for an address
  • Mint to an address
  • Batch Mint
  • Batch Airdrop
  1. Creator Tools
  2. Launching an NFT project via CLI

6. Mint from your contract

After instantiating your contract in Step 4, it's now possible to mint NFTs from the contract. If you have not already done so, make sure to replace minter in config.js with the address of your minter contract from the previous step.

There are various minting options. You can mint for yourself, to someone's address, or mint a specific NFT to someone's address. You can also mint a batch of NFTs at a time.

Mint a specific NFT for an address

You can mint a specific NFT by its token ID to a specific address as well.

yarn mint --for [tokenId] [address]

This command can be used to airdrop tokens before minting starts. There's no fee when run by the contract admin.

Mint to an address

NOTE: This command mints the next available tokenId to a given address. DO NOT run this until all tokens for specific address have been minted using mint --for above.

Mint to a specific address.

yarn mint --to [address]

Simply repeat the above for every address you want to mint an NFT. The next sequential token ID will be used for each mint call. This command also has no fee for the contract admin.

Batch Mint

You can mint a batch of NFTs in one transaction to an address.

yarn mint --to [address] --batch [num]

Batch Airdrop

You can airdrop 1 NFT per unique address to a batch of addresses in one transaction. Make a list of addresses in airdrop_addresses.csv . Then run:

yarn airdrop-file

By default, each unique address will be airdropped 1 NFT. You can override this by running the command:

yarn airdrop-file --keep-duplicates

Double check it succeeded by running the command:

yarn query
Previous5. WhitelistNext7. Query contract

Last updated 1 year ago