Processing asset: 1 From the point of view of the creator, you can think of this config as a way to specify the attributes, commissions and aspects of your NFT. 6.json Let's create one in js/packages/cli/tara: We are working on the devnet at the moment, so make sure that your network is set to devnet.

Don't speed run this section. #### Organizing your project assets By clicking below, you agree to our terms of service. Metaplexs Candy Machine addresses these shortcomings in a dynamic way. ended at: 2022-01-28T14:14:26.735Z. sign [options] The Candy Machine reads a JSON file that can be adjusted to your preferences. Maybe you live life on the edge. For our assets we will have files 0.png, 0.json, 1.png, 1.json, 9.png, 9.json. The motivation behind Candy Machine was to address problems with the way NFT drops were being managed and processed on the Solana blockchain. #### check `image` and `properties.files` values Looking at key 2 10 420 ## 1.json should refer to 1.png in the .image and .files props The Metaplex Candy Machine operates on the Solana blockchain. :::info ``` Minting NFT collections correctly requires technical know-how, and the Candy Machine helps streamline the process. - ensure you have a recent version `jq` installed The cover image of this article was created using graphics from Candy Machine Vectors by Vecteezy and Monkeys Vector by Brgfx on Freepik. --env devnet \ If you decide to create a website, you can follow the steps outlined here: https://docs.metaplex.com/candy-machine-v2/mint-frontend. You have two options: use an existing keypair with funds, or create a new keypair and add funds. You can request some using airdrop: The above command will give an output similar to: It's a good idea to test your collection on Devnet first. This tutorial is going to walk you through the basic steps to create a Candy Machine mint. mint_one_token [options] For example, the current version as of May 2022 is 0.0.2. Do not use Solana mainnet with SOL until you If you're running into issues - clone the project -- if you're me: `ts-node ~/metaplex-foundation/metaplex/js/packages/cli/src/candy-machine-cli.ts help upload` Metaplex is a collection of tools, smart contracts, and other technologies that have been designed to make the process of minting and releasing NFTs simpler. It will: ```bash ``` The studio and its community have been moving fast to support several thousand NFT developers and the most popular Solana NFT collections and creators who are interested in launching their very own NFT projects on the Solana blockchain network. - _verify_ the state of your candy-machine is valid and complete Keypair Path: /Users/levi/.config/solana/devnet.json WebSocket URL: wss://api.devnet.solana.com/ (computed) 3.png You can change devnet to mainnet if you are using Solana mainnet. ```bash $ find assets -type f -name '*.png' | wc -l # count the images files - initialize your projects candy-machine ## this command flattens, then counts the unique properties.creators values in your metadata. Publishes full transaction data as calldata to Ethereum Mainnet, which increases rollup costs.

RPC URL: https://api.devnet.solana.com ## this command lists then sorts all of your name values. And finally, the directory name `assets` doesn't really matter. ## this command extracts unique seller_fee_basis_points, then sorts and counts them. You can add this keypair to Phantom to check the NFTs. This provided an unfair advantage to NFT collectors with developer backgrounds. - swap SOL for AR and send files to arweave Options: :::

Looking at key 3 Because any SPL token can be used to create whitelists, it is up to the project creator's discretion how they are distributed. Run solana-keygen new --outfile ~/.config/solana/keypair.json to create a new keypair. Copyright 2021 Levi Cook The newly-created Solana NFT shows all of the information from the metadata json file. 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. The cache folder is hidden and called .cache. Name {redacted-name} 1 with https://arweave.net/{redacted-tx-id} checked out If you decide to mint the NFTs to your own wallet, you can do it via the CLI: The above command will try to mint 5 NFTs by reading the taracache. You can check to make sure that everything installed properly by running npx ts-node ./js/packages/cli/src/candy-machine-v2-cli.ts --version. In fact, the Candy Machine CLI provides the verify_assets command to check that uploaded assets are in the correct format. ::: $ ts-node ~/metaplex-foundation/metaplex/js/packages/cli/src/candy-machine-cli.ts verify

$ solana-keygen new --outfile ~/.config/solana/devnet.json - _upload_ your images and metadata to arweave, then register them on the solana block-chain Once you have downloaded the prerequisite Solana developer tools and configured your machine, you should be able to create a new Candy Machine that is ready to mint tokens after initial deployment. :::info We are not going to add a BIP39 passphrase to simplify the tutorial. -V, --version output the version number Doesn't need to publish transaction data on Ethereum because ZK-SNARKs and ZK-STARKs already guarantee the accuracy of the rollup state. Next, let's clone the Metaplex repository including Candy Machine into our project folder git clone https://github.com/metaplex-foundation/metaplex.git . Processing file: 0 $ find assets -type f -name '*.json' | xargs jq -r '.name' | sort | less ::: $ find assets -type f -name '*.json' | xargs jq -r '.symbol' | sort | uniq -c Done. Using version 2 of Candy Machine it is now possible to create large collections and hide-and-reveal drops by specifying a single hash.

This collection will be called "Tara". The next step is to prepare the candy machine. # REDACTED Users can withdraw funds immediately because validity proofs provide incontrovertible evidence of the authenticity of off-chain transactions. We will use the official CLI to mint our collection. #### check `seller_fee_basis_points` directory Directory containing images named from 0-n `ts-node ~/metaplex-foundation/metaplex/js/packages/cli/src/candy-machine-cli.ts upload` sends files to arweave __and also__ registers those files with your candy-machine. 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. send the NFT to others. 2 SOL, node ../build/candy-machine-v2-cli.js upload \, Beginning the upload for 5 (img+json) pairs These folder names can be anything. You signed in with another tab or window. The Metaplex docs can walk you through all advanced options and settings. Usage: candy-machine-cli [options] [command] Candy Machine helps solve common issues related to minting Solana NFTs including: Most large-scale NFT creators use automated minting tools similar to Candy Machine. $ find assets -type f | wc -l # count the total number of asset files This is sort of the "missing guide" on how to use the metaplex candy machine (espescially the command-line or cli interface). For the most convenient setup, creators are encouraged to use the frontend UI provided by Metaplex. The candy machine config lets you set the price, mint date and other attributes of the collection. Users don't need someone to watch the L2 chain to detect fraud. If you have a 10k collection, then there should be 20k files in this directory. ## for most projects, your just paging through and confirming

The Solana devnet RPC connection is not reliable. In conjunction with Strata's Dynamic NFT Pricing Mint tool, creators can reliably launch NFT campaigns on Solana with a simple toolkit. transaction 5 complete 4yBqTztycEPqRMZTZTQadRC4DBkdcBgUhSFvkrmHhcg8LsiGx1NrxtUTJjVjcSsPu42Vwe5Bhxh5B8GKrE3YE1PS Once you have completed the initial preparation, it is critical that you verify that the files are ready to be uploaded. We can add SOL by running solana airdrop 1. Configuring Candy Machine is very important, so double and triple check your settings. In general, the latest version of the program enables new distribution possibilities and offers enhanced protection from bot attacks, all packaged in the same easy-to-use interface.

:::warning

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. Since we have five assets, we need five configuration files. -e, --env Solana cluster env name (default: "devnet") `solana-keygen help new` Users can either rely upon an existing keypair with funds or create a new keypair specifically for this project. The Solana NFT Candy Machine, or CM for short, is a Solana Program designed to help NFT creators sell their NFTs. You can download a sample config file here: config.json. Any other RPC provider works for this tutorial as well. The command is smart enough to resume uploads. ## you should expect this to output 100. Developers can clone the Metaplex repository by pulling the CLI from GitHub. #### Fund devnet wallet Config File: /Users/levi/.config/solana/cli/config.yml ts-node ~/metaplex-foundation/metaplex/js/packages/cli/src/candy-machine-cli.ts \ ``` cd into a directory where you want to store the Metaplex related code. This cache was created in the upload process. 10 Uses validity (zero-knowledge) proofs to prove transaction validity. There are a few reasons why developers should consider using Candy Machine. - mint individual tokens with _mint_one_token_ Done Fair mints: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. --keypair ~/.config/solana/devnet.json \ In addition, you can also confirm whether the upload is ready to be deployed using the Candy Machine CLI. Youre all set and ready to mint your very first NFT using Candy Machine v2. We will use the folder "cm-project" mkdir ~/cm-project and then change directory to the project folder root cd ~/cm-project. Successful = true. For us, it is AuuLoYV9kx8HKWrpnJCT5whgURqd5MwxckWesL5arqh. ## the pattern looks like you'd expect it to. We will use it to: Staying close the defaults ensures you don't have surprises like publishing fewer NFTs than you meant to. 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. For example, you could use a Solana-based NFT analytics tool that relies on data being parsed through by a Solana API. -h, --help display help for command If you found this helpful, consider sending a tip to the author. --price 1 \ The Candy Machine CLI will check the images and metadata json files. NFT publishers should target devnet before going for mainnet. Maintain your choice of settings across areas such as whitelisting, Captcha protection, and gatekeeper settings. Name {redacted-name} 3 with https://arweave.net/{redacted-tx-id} checked out The NFTs will be stored in the wallet related to keypair.json. Easy Guide To Mint Solana NFTs Using Candy Machine V2. ## this command extends the prior command by extracting the shares & summing them up. 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 WTF is a candy-machine you ask? As a result of the upgrade, Candy Machine v1 has been deprecated and is no longer supported. Open the terminal app on your computer. The Candy Machine metadata requires all metadata JSON files to follow the Solana Token Metadata Standard. 10 ["",10] ```bash Generating a new keypair For the purposes of this article, we will solely focus on Candy Machine, often described as working like the gumball-style candy machinewhere users insert one token to receive an NFT. Arguments: Avana Wallet displays your NFTs in the app. 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. Also, the Metaplex docs include a section on creating a NFT minting website, which is not covered here. This will create a new keypair for you. - start and finish at the same time for everyone Building up commands with lots of long arguments can be challenging and error prone. 10 SOL NOTE! Here's how you should organize the files you want to upload. 0.png Uses fraud proofs to prove transaction validity. Looking at key 1 Processing asset: 3 # License :::info - after the code is finished downloading, run --cwd ./js/ in the project root folder (do not change folders). This passphrase improves security of the recovery seed phrase NOT the $ ts-node ~/metaplex-foundation/metaplex/js/packages/cli/src/candy-machine-cli.ts help Because NFT sniping tools exist, come NFT projects create honeypots, or fake CMIDs that accept SOL tokens, but don't return an NFT, to deter bots. The Solana airdrop command is sometimes unreliable. I highly recommend making devnet your default solana url: `metaplex upload` handles more than just sending files to arweave. In addition, any configuration value can be updated. :::warning Candy Machine is a Solana-based program developed by Metaplex Studios, anNFT ecosystem for marketplaces, games, and arts & collectibles, to reliably sell non-fungible tokens (NFTs). Note that you should use an alternative RPC connection (not public Solana RPC) if you plan on minting large collections. wallet public key: 9WS1ezpcxDVfA8cWGzDswCxfXWPtc6xcrkEk9gN6PWh8 It's not uncommon for me to wait 10-15 minutes to see it serve images and metadata. 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. We can mint Solana NFTs from the Candy Machine CLI easily. ### Uploading 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). Commitment: confirmed 20 Requesting airdrop of 10 SOL Depending on configurations, it is either restricted to whitelist users or the goLiveDate has not been reached yet. Notice that these come in numerical pairs. ``` 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. ===================================================================== Mint Authority: Solana address that is able to mint the NFTs. We will walk you through step-by-step Finally, you need some SOL to pay gas. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: Start building on Solana with Alchemy today. Explore 10 of the most popular and Solana NFT collections, and discover the characteristics that make them special like team, utility, roadmap, and artwork. 1.json $ find assets -type f -name '*.json' | xargs jq '.properties.creators' | jq -c '.

10 SOL 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.

set the NFT as your profile picture, and -k, --keypair Solana wallet location (default: "--keypair not provided") create new distribution scenarios and offers protection from bot attacks. ``` We will use solana config set --url https://api.devnet.solana.com/ to connect to Solana devnet. https://docs.solana.com/cli/install-solana-cli-tools Collection Address: Collections are structured as NFTs. It's a system for managing fair mint. `solana help config`, ::: 2.json If running the program on Mac OS with the Apple M1 chip, additional dependencies will be required. You can pass any number in place of 5. -n, --number Number of images to upload Version 2 enables you to Make sure you save the output pubkey: 5B2r75JbpajeWcx4niKq7pck3ZLcHvChXATm46YdRLGp. ## for most projects, you should see a consistent count across all parties (address-[1..3]) Update Authority: Solana address that is able to update the NFT metadata. - won't accept your funds if they are out of NFTs to sell Install the Solana Command-line Tools If you are building a richer application, or want NFTs that can upgrade overtime, checkout the Meta Blocks protocol. ```bash `solana config set --keypair ~/.config/solana/devnet.json` ``` Congratulations! Relies on cryptoeconomic incentives to assure users of rollup security. Explore the top 10 Solana RPC node providers enabling web3 developers to deploy smart contracts to Solana's Devnet, testnet, and mainnet. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. #### Create devnet wallet (for testing) Metaplex offers a suite of tools and smart contracts (programs) that will ease the process of creating NFTs. https://docs.solana.com/cli Each file should be a number, starting at 0. If you are uploading a lot of images, you might need more than 2 SOL. After this, your assets are ready (assuming you didn't make any typos). The second-iteration eliminates this possibility by using an unpredictable mint index, which is not possible to predict. This file will have the following content: You can create a script to generate the configuration for you. verify_price [options] There is a single account on-chain that holds all the configuration of a Candy Machine and you can make changes to your configuration in the future. ```bash Metaplex has created a sample collection that you can download for testing purposes. - customize your own ui - install `ts-node` -- if you're me: Processing asset: 0 Faces higher overhead from costs involved in generating and verifying proofs for every transaction block. If your me, you'll redact your mnemonic, store it somewhere safe and take advantage of the `--outfile` flag.

NFTs welcomed :) 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. Each asset (image/video etc) that you want to publish as an NFT needs an accompanying Metaplex config. First, go read the fine manual keypair file itself, which is stored as insecure plain text The Metaplex package comes with multiple packages, but we only care about cli. 6.png For example, 0.json contains the NFT metadata for 1.png. You can save and reuse the configuration across multiple drops. This project is under active development. The Candy Machine can only mint NFTs to users after your goLiveDate setting in config.json.



Sitemap 9