YourNewEmpire / Truffle-Tutorial-ERC721

Repo for deploying and minting NFTs for opensea and ipfs with truffle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Truffle-Tutorial-ERC721

Repo for deploying and minting NFTs for opensea with truffle and ipfs

Prerequisite programming in node.js would be beneficial.

Getting started

Clone this repo. Run npm install in terminal. Place Matic RPC node key and Wallet Mnemonic in new .env file Upload some nft metadata to an api. I used IPFS. Place link to NFT Collection.json in contractURI method, under GameItem.sol. Deploy the contracts with truffle develop then migrate --network mumbai in the terminal, then copy the contract address. Add your account address, contract address and token json link to the mint script. Enter node scripts/mint.js into the console to mint.

This is inspired by opensea's tutorial: https://github.com/ProjectOpenSea/opensea-creatures and https://docs.openzeppelin.com/contracts/4.x/erc721 and is supposed to be an expanded version (with ipfs and solidity at a higher version). With that, I shall explain what is going on clearly in the future blog post.

Once again, huge credit to opensea, ethereum infrastructure, and ipfs for making it all possible for me to build on and learn with.

About

Repo for deploying and minting NFTs for opensea and ipfs with truffle


Languages

Language:JavaScript 80.7%Language:Solidity 19.3%