Creating an API key.
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.jsfile in your favorite text editor and add the corresponding keys to
pinataSecretKey. For example:
// Pinata API Key
// Pinata Secret Key
Make sure the rest of
config.jsis 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.
//// COLLECTION INFO ////
// The name of your collection
name: 'Collection Name',
// The 3-7 letter ticker symbol for your collection
// Project description
description: 'An awesome NFT series',
// Path to image to use as the main image for the collection
After filling out your config, and double checking all the details, you're now ready to upload your project to IPFS! Simply run:
yarn run pinata-upload
This will output a
baseTokenUri. Be sure to add it to your
With your assets uploaded to IPFS, you are now ready to deploy your smart contracts.