Pinata Upload

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.js
file.
Open your
config.js
file in your favorite text editor and add the corresponding keys to pinataApiKey
and pinataSecretKey
. For example:// Pinata API Key
pinataApiKey: "",
// Pinata Secret Key
pinataSecretKey: "",
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. //// COLLECTION INFO ////
// The name of your collection
name: 'Collection Name',
// The 3-7 letter ticker symbol for your collection
symbol: 'SYM',
// Project description
description: 'An awesome NFT series',
// Path to image to use as the main image for the collection
image: 'images/1.png'
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:
yarn run pinata-upload
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.
Last modified 4mo ago