This repo have code for generating metadata and can host images and metadata on IPFS
It comes with an ERC721 contract that was created with OpenZeppelin
. is used to generate NFT and has a mint payable
function to buy NFT.
And you can verify the contract with truffle-plugin-verify
.
$ git clone https://github.com/Armakuji/ERC721-with-ipfs-generator.git
Install npm dependencies
$ npm install
$ npm run generate_raw_metadata
- you will see your raw metadata in the
assets/metadata
folder and You can add your imagetriats
there.
$ npm run generate_ipfs_metadata
- you will see your
URI of IPFS metadata
in theassets/ipfs-data/metadata
folders.
$ truffle migrate –network rinkeby
$ truffle run verify MintNFT --network rinkeby