Contract MakePicNFT inherit from ERC721URIStorage, which has a URI to store additional information. This project provide a web page to input information and upload a picture, and then call to mint.
Deployed:
The contract MakePicNFT: https://github.com/maxyou/MakePicNFT-Contract
- Run js-ipfs node in your browser.
- Write picture into ipfs by js-ipfs node.
- Construct a JSON according to OpenSea format, with picture ipfs address.
- Write this JSON into ipfs by js-ipfs node.
- Call contract function to mint a NFT, with the JSON address as params.
The picture and JSON are not pinned in ipfs. I'm not sure if OpenSea cache this files, and what will happen in the future.