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
  1. Creator Tools
  2. Launching an NFT project via CLI

4. Instantiate minter contract on testnet

On Stargaze, you can instantiate contract code that has already been uploaded to the chain. You don't need to deploy new contracts like you have to do on Ethereum.

Since NFT minter and collection (sg721) contracts already exist on Stargaze, you can just make new instances of them.

The following command will instantiate two contracts:

  • minter: This contract contains all the logic for minting, managing prices and whitelists.

  • sg721: This contract is your NFT collection contract that contains the list of all NFTs with associations to owners and metadata.

Launching a collection has a 1,000 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.

yarn minter

If all went well, you should see a print out of your minter contract address and sg721 contract address.

  attributes: [
    {
      key: '_contract_address',
      value: 'stars13we0myxwzlpx8l5ark8elw5gj5d59dl6cjkzmt80c5q5cv5rt54qm2r0mx'
    },
    { key: 'action', value: 'instantiate' },
    { key: 'contract_name', value: 'crates.io:sg-minter' },
    { key: 'contract_version', value: '0.2.0' },
    {
      key: '_contract_address',
      value: 'stars1x8gwn06l85q0lyncy7zsde8zzdn588k2dck00a8j6lkprydcutwq0uyaaw'
    },
    { key: 'action', value: 'instantiate' },
    { key: 'contract_name', value: 'crates.io:sg-721' },
    { key: 'contract_version', value: '0.2.0' },
  ]

Edit config.js and fill in the first address above for minter. It will be used in the next section to mint from your contract.

The second address the above output is your collection's contract address. Please save this somewhere as you will need it later to list your collection on the marketplace.

Congratulations! You have completed the first step in launching your collection.

In the next section you'll learn various ways to mint NFTs from your minter contract.

PreviousPinata UploadNext5. Whitelist

Last updated 1 year ago