Skip to content

techwizard210/NFTs_Truffle_IPFS_Opensea-Polygon

Repository files navigation

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

Deploy NFTs with Truffle, IPFS OpenSea & Polygon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published