To create an ERC721 NFT collection on Polygon, you must first upload your NFT metadata (JSON files) to IPFS via Pinata and update the base URI in your config.json file, then download and configure an ERC721 smart contract template in Remix IDE with parameters like collection name, symbol, base URI, and minting limits, deploy the contract to the Polygon Mumbai testnet using MATIC for gas fees, and finally mint NFTs and display them on OpenSea testnets.
ERC-721 NFT Collection on Polygon: Smart Contract Deployment Guide
Added:we can even go over to its description and see that it's an erc 721 or token standard hello guys this is your boy lisa lanky and today in this video we'll be talking about how to create erc 721 nft collection so uh in the previous videos i've already talked about how to host your nfts on ipfs before that we had talked about the difference between erc 1155 and erc 721 i'd shown you an example of erc 1155 as well and we had also talked about uh so this was the first video in the series and we had talked about how to generate multiple nfts actually create the entire nft collection as well so in this particular video we'll be talking about how to create erc 721 nft collection and we'll be deploying our smart contract and minting nfts and then viewing our nfts on openc as well so uh let's just do that let's uh start right from uh the first step and um yeah uh before i begin i also want to tell you that we'll be uploading this on a polygon network but it's exactly the same when it comes to ethereum network as well i'll tell you the small differences that we'll be facing in the uh steps but um the only difference would be you'd have to pay a lot of gas fees so yeah if you want to go with ethereum network you can do that as well so uh let's just start with the video and uh do the first step which is updating and uploading nft metadata on ipfs now if you remember uh in the last video we had uploaded our images on pinata which is uploaded our images on ipfs protocol and we had gotten this particular cid from it as well so in this particular video uh in the first step we need to upload our json files as well so the json files were created over here so if you just go over to the build and uh you can see all the images that you had built right so these were the images that we had built uh using the different layers uh but we also want to upload the json file so let me just scroll up and uh let me just go down yeah so these are the metadata for all of those uh files uh that we had generated and in that if you see uh in the image section there's this particular line which is ipfs code here and then slash one dot png so in all of these json files we need to update ipfs code here with the ipfs code which is given over here the code is uh this qmrz that's the that's the code that we want to update all of the json files with so just copy it to clipboard now uh of course you can keep on going uh one after the other for all of these files and keep on changing this ipfs code but that'll take a long time and we don't want to do that right so what we'll be doing is uh we'll be closing this down uh let me close this as well and we'll be going over to src folder and in that we'll be going over to config.json file so in that also there's this base uri and uh in that there's this ipfs uh colon and then there's uh two slashes and then the code is over here as well so just paste that code here and uh in and then save it of course uh and then run this particular command in your terminal this is the command that we need to run which is node utils slash update underscore info.js so run that particular command um this is the command that we want to run it will be down in the description box below so just copy it and run that command and you'll see that updated base uri for images to uh this particular thing which is uh what we had updated over here and welcome to the stripes nft has been updated as well as the description so uh everything's done now uh what we need to do is now we need to check our json files if they have really been updated so yes they have been updated there's no ipfs code over here um message and uh now we can uh freely upload this json folder uh onto ipfs so let's just do that uh so go over to pinata and it's the exact same process that we uh did for our images we'll be selecting the folder so let me just uh find my folder i think it was here build and json yeah this was the folder let me just upload it and i'll name it the stripes nft json you can name it whatever you want it's just for your own reference so uh once that is completed we'll be going over to the second step which is downloading erc 721 smart contract because we need to uh deploy the smart contract as well so we'll be downloading the smart contract and you can download it from this particular uh website so this is a github uh folder for the files and uh in order to download it just press on this code button and uh download the sip folder and open the zip files so you'd be able to see this contract folder and the stripes nft dot solidity file as well on your desktop or wherever you store it so i've already done that i'll just show it to you in finder so let me just search for my files so this is how it would uh be shown on your uh files so there will be this contracts folder there will be access ownable.solidity then there's token and all of these files and folders would be there in your thing as well so once you've downloaded it you need to go over to remix.ide sorry remix.ethereum.org and then upload all of the files that you had uh downloaded over here as well because we need to deploy the smart contract now so let's just do that uh i've already done that actually uh this is the contracts folder this is the access folder then there's ownable.solidity so just upload each and every file over here and make sure that you're uploading everything in the right order the right order meaning uh that the access folder should be inside contracts then token folder should be inside contracts the erc721 folder should be inside token so so on and so forth so just make sure that you're uh uploading it properly and uh let me just do that and yeah so everything's done now just go over to the compiler make sure that you're on the right file which is those types nft dot solidity and uh compile it also one more thing uh you might not uh want to keep the cost as uh 0.04 etho which is what i'll be keeping for the stripes nft the pre-sale cost would be 0.03 ether you can change that as well the maximum supply for my uh particular uh nft collection is 992 images so that's what i've kept over here as well uh yours might be different so just change it and the max mint amount is 50 that is 50 nfts can be minted per wallet so uh that's just the things that i've kept you need to change uh these four particular lines if you want to and then uh just compile uh the stripes nft dot solidity make sure the compiler is set to 0.8.7 and not anything else and then just go over to deploy and now we are ready to deploy our um solidity files so uh before i do that let me just uh disconnect my wallet so that i can show it to you how it will look for you as well so uh before i do that just uh let me change it to javascript virtual machine and then go over to injected web3 again so yeah this particular notification would pop up and uh make sure that you're selecting the right account for it so i'll be selecting i think i'll select this particular account because uh i've not used this account for or deploying nfts till now or maybe i'll select this particular account because i have not used that for anything at all so uh let me just connect it with that account and uh yeah it has no balance it has nothing so i can show you everything uh right from scratch so let me just uh change it to that particular account you can see this uh green uh dot over here and it says connected that means it's already connected but i cannot deploy it and the reason for that is because i don't have any matic to pay for the gas fees right so you need some matic uh in order to pay for the gas fees so how do you get matic so first copy this uh wallet address copy your wallet address and uh here you can see that uh get free polygon for paying gas so um you need to go over to this particular faucet uh go over to this faucet and uh just select the matic token uh paste your address over here and make sure you're on the mumbai network itself uh and press submit and confirm so it will be transferred in around one or two minutes and uh yeah just wait for it to uh come in your wallet and till then what you can do is just go over to remix uh and fill up all these details so in the deploy part you'd have to fill up three things uh first is the name of your nft collection so the name would be the stripes uh nft by the way uh one more thing uh that i forgot to mention is that make sure you're on the right network so this was the mumbai test network if you want to deploy it on ethereum network make sure you're on the ethereum network and not on mumbai network or polygon network or whatever you have so uh just make sure that you're on the right network and then uh connected to the remix id now by the way i already got my one matic so i am ready to deploy it as well so let me just put the symbol as ts nft uh the initial base uri so here is where things get tricky so let me just zoom in on this so what you need to write is ipfs uh colon and then there will be two forward slashes and then you need to paste the cid from here so the cid would be of the json files not the images okay so just copy the json file cid uh paste it over here and then make sure you add a slash at the end of it so let me just add a slash uh forward slash and uh that's it let me show it to you so everything's done now we are ready to transact and deploy our nfts so press on transact it will take some gas fees but as we have already uh taken some matic for free from faucet we can pay for the cash fees wait for some time and it'll be showing here in the deployed contracts part so it's deployed over here and in order to see this deployed contract you on the polygon scan as well you can just go over to polygon scan and search for your contract so let me just do that polygon scan oh by the way we have deployed it on the mumbai test network it's not there on the polygon network so that's why it won't be over here it won't be directly over here rather we'd have to go over to mumbai.polygonscan.com so make sure that if you're doing it on the test network it should be there on the test network so the the polygon scan should be of mumbai and not the main polygon scan so let me just search for my contact and here you can see that 47 seconds ago the contract was created everything's done uh after this you can also go over here and verify and publish your contract but i won't be doing it right over here uh you can do that afterwards also you can just press on verify and publish and there you'll have to actually um you know upload all of these files and folders which would take a bit of time so i don't want to show it to you right over here you can check my previous videos i've done that for other uh contracts and other um cryptocurrencies as well while making a new cryptocurrency i'll try to link it uh above in the video but i won't be doing that over here i just want to show it to you on openc so once we have deployed our contract we can then mint nfts as well so yeah first let me just mention some nfts through remix ide so let's just do that uh if you go down uh you can see uh where did it go uh where's the mint function okay the mint function is over here so if you just open this uh there's two things that you need to put uh the two address where you need to uh send the minted nfts to and uh the mint amount how many nfts do you want to mint it should be less than 50 because the maximum wind amount is 50 per uh wallet so uh let's just do that um we have already um you know minted 20 nfts that's the uh starting um so here if you see we have already minted like 20 nfts for our uh this particular uh address but we have not mentioned anything for this address so let me just copy this address uh paste it over here and i'm gonna uh mint say 10 uh nfts for it so let me just uh go back and uh then put the transaction and it will show me uh some gas fees that i wanna that i'd have to pay uh confirm it and uh it'll be soon or transacted as well so it's done and now if you want to see your nfts in your wallet uh you can just go over to openc dot io uh actually not openc because it's on the test network so you should be going on testnets.openc.io and not openc.io now that you're there on the testnets.openc.io you can go over to your profile and see the nfts that you'd created so uh we had created uh 20 nfts for this particular address they were created when we had deployed uh the contract as you can see over here so mint or 20 nfts when it was created so the owner got 20 nfts and we can see all these nfts we can even go over to its description and see that it's an erc 721 or token standard you can go over to the contract address as well it'll be the same contract address over here and it was deployed eight minutes ago it was created eight minutes ago and uh yeah everything is done uh i also wanna show you uh the other wallet address which we had sent 10 nfts to so let me just do that let me connect it connect this particular address and now let's go over to our profile and there should be 10 nfts with this uh particular address uh let's just see um what's the problem um i think the nfts haven't actually come up i don't know what's the problem with this but uh it should have been uh minted so it's actually in the hidden section it's not in the collection section um i don't know why why is that the case but uh yeah it's uh there it's already minted uh for us and uh it's there in our uh wallet address so yeah we can even sell this nft now we can share it with others you can send it for you know some particular eth fees or dive fees and keep some auctions for this and do whatever you want with it as well so uh i think that's it uh other than that i also wanna show you uh how you can change the collection details so let me just switch back to the uh first wallet and uh go over to my collections this was the collection and this is our collection uh we can see there are two owners one was us only and the second one was where we sent the 10 minted nfts so it's over there um and let me just uh show you how you can change the details so you can change the wallet um thing so let me just sign this particular thing and here you can edit your collection you can change the logo image you can change the featured image you can change the name as well so let me just change it to the stripes nft and oh the name is already taken so that's why it was giving us the stripes and ft version too so that's okay that's okay um and yeah you can add in your uh different links you can add in royalties so whenever the uh nfts get sold you get say ten percent of uh the um amount you can add in a payout wallet address i'll just put in this particular wallet address itself and uh yeah you can have payments in ethereum old i you can have whatever you want uh on this and yeah that's it for this uh particular video and uh if you like this video then do share it with your friends do like this video and subscribe to the channel for more such content
Up Next

ERC-4337 Account Abstraction: Foundry, Next.js, Wagmi, and Account Kit Tutorial
@TomsCourses
3.5K views•2024-01-22

Torrent File Format & Bencoding: A Technical Deep Dive
@AsliEngineering
12.5K views•2022-08-08

Operational Security Essentials: A Guide for Hacktivists (OPSEC)
@hitbsecconf
157.4K views•2012-11-26

Understanding Ethereum: A Comprehensive Beginner's Overview
@99Bitcoins
3.1M views•2018-06-26
Related Study Plans & Knowledge Roadmaps
Structured learning paths in Blockchain & Crypto




















![Intro to Blockchain Programing [FULL COURSE 2023]](https://i.ytimg.com/vi_webp/cGQHXmCS94M/maxresdefault.webp)


















