- Place all the created images in the
nft/imagesdirectory. - If needed, use the
nft/renameImages.tsscript to rename the images. Images should be named in sequential order using whole numbers starting from 1 without gaps or spaces, e.g.,1.png,2.png,3.png, etc. - Upload the images directory to Pinata Cloud and copy its CID.
- In the
createMeta.tsfile, specify the project's NFT URL and the images directory CID.
-
Create (or ask ChatGPT to create) a
metadata.jsonfile using the names and descriptions of each NFT in the collection, as provided by the designer. The structure of the metadata should be as follows:[ { "name": "NFT name", "description": "NFT detailed description" } ] -
Use the
createMeta.tsscript to generate unique token metadata files. The script will generate metadata files based on the provided data and will also add some other fields, such asimage,creator, etc.ts-node nft/createMeta.ts
-
Upload the entire folder with the created metadata files to Pinata Cloud.
-
Copy the CID of the created folder.
-
Update the Ignition parameters file
ignition/eaNft.json. Ensure that theipfsparameter correctly matches the CID of the metadata folder, and thatnumFilesreflects the exact number of metadata files in the folder. -
Run the ignition module to deploy the NFT smart contract.
npx hardhat ignition deploy \ ignition/modules/EarlyAdoptersModule.ts \ --parameters ignition/eaNft.json \ --network rootstockTestnet