Candy Shop
  • 🍭Candy Shop
    • About Candy Shop
    • Why Candy Shop
    • Features & Services
    • Roadmap
    • Partnership
    • Team
  • 🛫SDK (For Developers)
    • Introduction
    • Solana
      • Creating Your Shop
      • Marketplace
      • Mint NFT
      • Edition Drop
      • Auctions
      • Credit Card Payments
      • Testing Your Shop
      • FAQ
    • Ethereum / Polygon
      • Creating Your Shop
      • Marketplace
      • FAQ
  • 🏝️No Code (For Everyone)
    • 🚧Coming soon...
  • 🧩Fractionalization
    • Introduction
    • How to Trade Fractions
    • Fees
    • FAQ
  • 💎Tokenomics
    • Notice & Disclaimer
    • The Token: LQN
  • 💼Legal
    • Candy Shop API Terms of Service
    • Privacy Policy
Powered by GitBook
On this page
  • Create Drop
  • Fetch Drops
  • Mint NFT
  1. SDK (For Developers)
  2. Solana

Edition Drop

PreviousMint NFTNextAuctions

Last updated 2 years ago

Edition Drop allows you to sell edition-ed NFTs (i.e. NFTs with unique edition numbers) with a .

You can currently launch Edition Drops via Candy Shop SDK. We will be releasing a user interface as well at a later date.

There is an optional whitelist feature where you can specify a time period where buyers can only mint the edition-ed NFT with a whitelist token. The whitelist token can be any SPL token that you create and configure to fit your use case. For instance, it can be earned by buyers after they complete certain actions, giving them access to the drop.

Create Drop

Create a drop by transferring a Master Edition NFT into the Edition Drop program.

candyShop.commitMasterNft({
  // tokenAccount Publickey of the master edition NFT
  nftOwnerTokenAccount: web3.PublicKey;
  // Master edition NFT mint Publickey
  masterMint: web3.PublicKey;
  // Whitelist Sale token mint Publickey
  whitelistMint?: web3.PublicKey;
  // Master edition NFT owner wallet address
  nftOwner: AnchorWallet | web3.Keypair;
  // price in the shop payment coin, in the smallest unit
  price: BN;
  // unix timestamp
  startTime: BN;
  // in second
  salesPeriod: BN;
  // whitelist sales start time
  whitelistTime?: BN;
});

Fetch Drops

Fetch drops with your shop Id.

candyShop.fetchDropsByShopAddress(shopId: string);

Mint NFT

Mint an edition-ed NFT from a drop. Edition numbers are randomized on the client side to allow multiple buyers to mint NFTs at once smoothly.

candyShop.mintNewPrint({
  // tokenAccount Publickey of the master edtiion NFT
  nftOwnerTokenAccount: web3.PublicKey;
  // Master edition NFT mint Publickey
  masterMint: web3.PublicKey;
  // Whitelist Sale token mint Publickey
  whitelistMint?: web3.PublicKey;
  // Buyers anchor wallet instance or keypair (used for CLI)
  editionBuyer: AnchorWallet | web3.Keypair;
});
🛫
Master Edition NFT