Mint with NFT.storage and Polygon TestNetwork Mumbai and IPFS/Filecoin storage via NFT.Storage made with Solidity using Hardhat.
$ cd NFTMetadata-IPFS-Storage
$ npm install --save-dev hardhat
$ npm install --save dotenv @nomiclabs/hardhat-etherscan @openzeppelin/contracts @nomicfoundation/hardhat-chai-matchers @nomicfoundation/hardhat-toolbox @nomiclabs/hardhat-ethers
$ npm i nft.storage dotenv csv-parse
#.env
$ NFT_STORAGE_API_KEY
$ PRIVATE_KEY
$ npx hardhat clean
$ npx hardhat compile
$ npx hardhat run scripts/store-content.mjs --network PolygonMumbai
After doing the first deployment of store-content.mjs Replace the results: ipfs://bafyreieqrgx34acvgryhqxoqqinjsu5to3iu3sz57qv6lzniasbefxy7ii/metadata.json in assets/metadata_urls.csv
$ npx hardhat run scripts/deploy.mjs --network PolygonMumbai
$ npx hardhat run scripts/mint-nft.mjs --network PolygonMumbai
In Metamask call the contract that deploy.mjs gave you and add the item or Pokémon, are only 4 (1,2,3,4).
6. OpenSea Testnets https://testnets.opensea.io/collection/celebrations-25-years-pokemon-card-tcg
OpenSea Testnets is a test environment where developers can test their applications and functionality without using real core network assets. With different networks such as Goerli ETH and Polygon Matic