Avalanche: How To Launch a Generative NFT Collection With Avalanche and IPFS
Learn how to launch a generative NFT collection with IPFS and Avalanche.
What is Avalanche?
1. First, we need to create an IPFS bucket on Filebase.
2. Select ‘Buckets’ from the left sidebar menu, or navigate to.

3. Enter a bucket name and choose the IPFS storage network to create the bucket.

4. Next, run the following command to create a new project directory and navigate inside it:
5. Then, initialize the project directory:
6. Install and start Hardhat and its related dependencies:
7. Now, upload your NFTs to Filebase using the web console and selecting ‘Folder’, then selecting the folder that contains your NFT files.

8. You will see your folder uploaded as a single object:

9. Copy the CID of your folder:

10. Navigate to your IPFS Folder using the Filebase IPFS gateway to see your folder’s files:
11. Install the OpenZeppelin smart contracts package:
12. Create a new folder in your project directory called contracts, then create a new file in this directory called NFT.sol.
contracts, then create a new file in this directory called NFT.sol.13. Navigate back into the root of your project directory, then create a new folder called metadata.
metadata.14. Still in the root directory, create a new file called metadata-generator.js.
metadata-generator.js.15. Run this metadata-generator.js script with the command:
metadata-generator.js script with the command:16. Your metadata folder will now be populated with metadata files.
17. Open the hardhat.config.js file at the root of your project folder.
hardhat.config.js file at the root of your project folder.

18. Now it’s time to create our deploy script for our smart contract.
19. Then, create a new file called deploy.js.
deploy.js.20. Compile your project:
21. Deploy your smart contract with the command:
22. Last, it’s time to create a minting script to mint our NFTs using this newly deployed smart contract.
23. Run the mint.js script with the following command:
mint.js script with the following command:Last updated