Skip to content

querylab/NFTMetadata-IPFS-Storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mint with NFT.Storage and Polygon Blockchain

Mint with NFT.storage and Polygon TestNetwork Mumbai and IPFS/Filecoin storage via NFT.Storage made with Solidity using Hardhat.

Setting Up

1. Clone the repository

2. Install dependencies

$ 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

3. Change variables .env files create an account in nft.storage to be able to use its apikey

#.env
$ NFT_STORAGE_API_KEY
$ PRIVATE_KEY

4. Deployment

$ 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

5. Metamask

In Metamask call the contract that deploy.mjs gave you and add the item or Pokémon, are only 4 (1,2,3,4).

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

About

NFT Celebrations 25 Years Pokemon Card TCG Polygon's Mumbai Testnet and metadata to IPFS using https://nft.storage 💎🎴

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published