Pinata Upload
Last updated
Last updated
In this guide, we'll be using Pinata to upload NFT project files to IPFS.
Create a Pinata account. The sign up page can be found here: Sign Up.
Go to the API keys page, and click the "New Key" button. Give the key a name and select "create".
This will create an API key pair for you. Take note of both the API Key and API Secret, you will need to add these to your config.js
file.
Open your config.js
file in your favorite text editor and add the corresponding keys to pinataApiKey
and pinataSecretKey
. For example:
Make sure the rest of config.js
is filled out according to your project needs. It's particularly important to note the Collection Info section. This information will be used for generating metadata about your collection, and will control how it is displayed in the UI.
NOTE: image
here in the Collection Info config is the image that is used when your collection is displayed in the UI. The pinata-upload
script will upload this image to IPFS for you.
After filling out your config, and double checking all the details, you're now ready to upload your project to IPFS! Simply run:
This will output a baseTokenUri
. Be sure to add it to your config.js
file.
With your assets uploaded to IPFS, you are now ready to deploy your smart contracts.