Lets start with the blocks, Introducing Meta Blocks: The NFT Evolution Protocol, Corporations will do their best to restrict you to their universe and it's time we start fighting to stay free, The Future of NFTs is Dynamic, Composable and Upgradeable, The benefits of upgrading NFTs without burning or modifying NFTs. The program authors are aware of this and carefully designed the program so that it's safe to simply re-run the upload command until everything goes through completely and cleanly. $ find assets -type f -name '*.png' | wc -l # count the images files True means the on-chain metadata is frozen. ``` npx ts-node ./js/packages/cli/src/candy-machine-v2-cli.ts mint_one_token -e devnet -k ~/.config/solana/keypair.json -c example, You can mint multiple tokens by using the command mint_multiple_tokens, npx ts-node ./js/packages/cli/src/candy-machine-v2-cli.ts mint_multiple_tokens -e devnet -k ~/.config/solana/keypair.json -c example --number 2. Metaplex has created a sample collection that you can download for testing purposes. For example, update the attributes to explain the NFT's unique properties in the description. time taken: 00:00:58, node ../build/candy-machine-v2-cli.js verify_upload \, wallet public key: 9WS1ezpcxDVfA8cWGzDswCxfXWPtc6xcrkEk9gN6PWh8, node ../build/candy-machine-v2-cli.js mint_multiple_tokens\, Minting 5 tokens We will also add a script to mint NFTs to your wallet via the CLI. This file will have the following content: You can create a script to generate the configuration for you. Metaplexs native user interface supports a variety of configurations of Candy Machine v2 such as whitelisting (for both pre-sale and discounts) and end-settings (i.e., automatically adapting the UI components depending on whether the whitelist token is detected or not. You can sell them, build a community around them, or keep them in your wallet forever. This permits the broader marketplace, storefronts, and CLIs to search for NFTs that were minted by a Candy Machine seamlessly and with trust. For Solana NFT minting, Metaplex does come with a full minting front-end application written in React. $ ts-node ~/metaplex-foundation/metaplex/js/packages/cli/src/candy-machine-cli.ts verify In less technical terms, Metaplex designed a standard that to store NFTs on Solana, an everyone in the ecosystem adopted the standard. Minting an NFT is the process of creating a token, freezing its maximum supply to 1 and attaching Metaplex NFT standard JSON to it, so a wallet can render it. True means you do not keep the role. NOTE: If you are not able to upload at all, you can try to clear the cache and try again. Signature: Kme6a2HjbiWCi3hVcqa8qAPcZHmC6kCQhNSVHKT9NyNacpKZ12uxE3GjDVsDHj8TbXtAGdh4An2qSYa9uKe8Hzt The project is about 90 megabytes and could take a couple minutes to download. Note that if you enabled captcha bot protection, then you will not be able to mint tokens from the command line. This provided an unfair advantage to NFT collectors with developer backgrounds. It will: The Candy Machine makes it very easy to upload a collection of images and their metadata from your computer to the Solana blockchain and file storage provider. The version should print in your command line. To configure this, create a file called config.json in js/packages/tara: To get more info about each key value pair, refer to the official Metaplex documen at https://docs.metaplex.com/candy-machine-v2/configuration. #### Validating your candy-machine ::: ## Preamble At Meta Blocks, we are building the NFT upgradation protocol. More information on creating a frontend for your NFT mint, or how to use Candy Machine v2, refer to the official documentation Metaplex. mint_multiple_tokens finished, https://docs.metaplex.com/candy-machine-v2/configuration, https://docs.metaplex.com/candy-machine-v2/mint-frontend, some understanding of bash scripts, and a terminal, You can add as many attributes as you want in, For additional files, make sure you use the correct, If there are multiple creators, you can specify the share split of royalties, Share = 100 signifies that 100% of the royalties for goto this creator, Mint them to your wallet via the command line or, Generate a candy machine website where users can mint their own. ::: This is just our personal preference. 3.json ### Prerequisites 2 SOL, node ../build/candy-machine-v2-cli.js upload \, Beginning the upload for 5 (img+json) pairs ::: Writing indices 0-4 ``` Faces higher overhead from costs involved in generating and verifying proofs for every transaction block. Update Authority: Solana address that is able to update the NFT metadata. Typically, the verified creator will be the Candy Machine by default. Now that your wallet is funded and your assets are organized and validated we can do the fun and important part! ``` Make sure you keep the date formatting consistent with the example. In addition, you can also confirm whether the upload is ready to be deployed using the Candy Machine CLI. This project is a learning project around Solana NFTs, and builds up example JavaScript code that interacts with Solana NFTs from the browser. The Metaplex Candy Machine operates on the Solana blockchain. $ find assets -type f -name '*.json' | wc -l # count the metadata files - install `ts-node` -- if you're me: 6.png ## for most projects, your just paging through and confirming Today, Metaplexs tool has become common across the industry as a result of its inherent utility, noteworthy documentation, and logic to combat threats such as bot attacks. I don't fully understand the replication process, but know that it takes time. Finally, you need some SOL to pay gas. The motivation behind Candy Machine was to address problems with the way NFT drops were being managed and processed on the Solana blockchain. This is sort of the "missing guide" on how to use the metaplex candy machine (espescially the command-line or cli interface). We can add SOL by running solana airdrop 1. minted 5 tokens Commitment: confirmed You can save and reuse the configuration across multiple drops. Looking at key 3 According to Metaplex, the numbering of the files start at 0. ```bash -h, --help display help for command On-chain NFT collections help validate accuracy and authenticity. :::info You can confirm the health of your on-chain assets using `ts-node ~/metaplex-foundation/metaplex/js/packages/cli/src/candy-machine-cli.ts verify`: For our assets we will have files 0.png, 0.json, 1.png, 1.json, 9.png, 9.json. Generative NFTs take multiple design assets to automatically create a large number of uniquely designed NFTs compared to 1-of-1 NFTs and AI-generated NFTs. Installing and using Solana Candy Machine V2 requires The program uses the Metaplex command line interface (CLI) to generate an NFT, connect relevant metadata and an image to the NFT token, and ultimately set-up a fair auction. We have the code but it's not usable yet. `ts-node ~/metaplex-foundation/metaplex/js/packages/cli/src/candy-machine-cli.ts help upload` how to setup your NFT mint using Candy Machine V2. If you found this helpful, consider sending a tip to the author. At this point, you can check the .cache folder to see the urls of the NFTs on Arweave. #### check `name` values ## for most projects, you should see a consistent count across all parties (address-[1..3]) ```bash This collection will be called "Tara". `metaplex` is a command line tool for interacting with the candy-machine program. Using Candy Machine v2, developers and creators can set up their own Solana NFT shops, add a mint page to their website, and safely launch a successful NFT project. Save this seed phrase and your BIP39 passphrase to recover your new keypair: You can view all of your NFT metadata, This process requires you to have: By the end of this tutorial, you will have 5 NFTs on the Solana devnet and a website to run a sale. - initialize your projects candy-machine $ solana config get verify_price [options] are sure that your local environment is configured properly. ```bash= [] | [.address,.share]' | sort | uniq -c Alchemy Supernode finally makes it possible to scale blockchain applications without all the headaches. Make sure your assets are numbered consecutively, and they do not have any gaps (for instance, 0, 1, 2, 3, 4, 5, and not 0, 1, 3, 4, 5). -e, --env Solana cluster env name (default: "devnet") If you're running into issues ```bash # REDACTED If you are following along with the example, you can find the 5 json files and images here. Read the fine manual You can find all configuration options at Metaplex Docs. Since we have five assets, we need five configuration files. Requires waiting through a 1-week delay (dispute period) before withdrawing funds. Maybe you live life on the edge. eg: 4.png and 4.json are two halves of the NFT -- one is the art, the other is the metadata. https://docs.solana.com/cli Usage: candy-machine-cli [options] [command] Now we need to set keypair.json file as the Solana CLI keypair. Explore 10 of the most popular and Solana NFT collections, and discover the characteristics that make them special like team, utility, roadmap, and artwork. #### check `symbol` values 9.json Run solana-keygen new --outfile ~/.config/solana/keypair.json to create a new keypair. :::warning ===================================================================== Make sure you save the output pubkey: 5B2r75JbpajeWcx4niKq7pck3ZLcHvChXATm46YdRLGp. 10 ::: It's based on me just reading code and figuring out how it's meant to be used--so don't assume I'm right or completely correct about anything. sign_candy_machine_metadata [options] Here's how you check it: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. ``` Don't speed run this section. You can read more about creating metadata files in Avana Wallet NFT documentation. -k, --keypair Solana wallet location (default: "--keypair not provided") ~/metaplex-foundation/metaplex For example, the current version as of May 2022 is 0.0.2. We can verify the upload using the Metaplex Candy Machine CLI as well: npx ts-node ./js/packages/cli/src/candy-machine-v2-cli.ts verify_upload -e devnet -k ~/.config/solana/keypair.json -c example. ```bash 9.png Once you have finished minting, you may want to consider you will want to sign your NFTs to verify yourself as the creator. Your submission has been received! The Candy Machine CLI will check the images and metadata json files. ::: Even though globally recognized NFT creators use automated minting tools similar to Candy Machine, the Metaplex-developed tool is highly recommended because it is now a fully on-chain distribution program for NFTs.