Brownie: Create and Mint an NFT Using Brownie
Learn how to create and mint an NFT using Brownie.
What is Brownie?
1. We’ll start by uploading an image to Filebase for us to use as an NFT.
2. Select ‘Buckets’ from the left side bar menu, or navigate to console.filebase.com/buckets.

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

4. Next, select the bucket from your list of buckets, then select ‘Upload’ in the top right corner to upload your image file.

5. Select your image to be uploaded.

6. You can view the object’s IPFS CID in the CID column, or you can click on your uploaded object to display the metadata for the object, which includes the IPFS CID.

7. Next, create a new .json file that correlates with your NFT image.
.json file that correlates with your NFT image.8. Then, upload this .json file to your Filebase IPFS bucket using the same workflow we used to upload our image files.
.json file to your Filebase IPFS bucket using the same workflow we used to upload our image files.9. Next, open a command prompt window.
10. Then install the eth-brownie package and ganache-cli:
eth-brownie package and ganache-cli:11. Next, login to the Infura.io console. Create a new project.

12. Select the Ethereum network, and give your project a name.

13. In the Project settings, select "Rinkeby” from the endpoint dropdown menu.

14. Then, take down the Project ID. You will need this in the next step.

15. Next, get your cryptowallet’s private key.
16. Open the .env file in your project directory.
.env file in your project directory.17. Now it’s time to deploy our smart contract.
18. Then, open the file located at scripts/simple_collectible/create_collectible.py.
scripts/simple_collectible/create_collectible.py.19. Now we’re ready to run this script to mint our NFT.
Last updated