Comment on page
Smart contract for minting NFT collections
Limited Developer Support
All assets represented in this library are community built, which means limited support from the Agoric OpCo development team. Please use components, APIs, and front-ends with caution.
This is a contract that allows NFT project creators to create a ‘drop’ event similar to popular NFT launches on other chains. Users can mint NFTs up to a count specified by the creator (e.g., 10,000) for a price specified by the creator (e.g., 200 IST). Users mint NFT IDs in a first-come-first-served manner until the full count has completed. The contract allows the contract creator to specify: total count of NFTs in the series to be minted, price per NFT, and the start time (or block) of the offering (before which minting cannot occur).
NFT “drops” have been popularized on Ethereum and other chains. In these drops, an NFT creator will offer a series of NFTs that are tied to their theme, but have differing properties - with the prevalence and desirability of specific properties leading to differing rarities and values for individual NFTs in the series. For example, all Bored Ape Yacht Club (BAYC) NFTs have a value for the “hat” property, but only 65 have the “Trippy Captain’s Hat,” making apes with Trippy Captain’s Hat rarer and more valuable than average BAYCs - currently the lowest offer for a Trippy Hat BAYC is over twice the ‘floor’ BAYC. Actual properties for the specific NFTs minted are typically only updated after the full minting is complete (not covered in this contract). At the time of the launch, users will interact with the contract (either through the creator’s dedicated UI or directly in some other manner) to mint one or multiple NFTs at the specified price.