How to Create an NFT Minting Smart Contract (Ethereum)

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ธ.ค. 2024
  • How to Create an NFT Minting Smart Contract (Ethereum)
    Today I’m going to teach you how to make a smart contract for minting an NFT collection on the Ethereum network.
    The process of writing and deploying a smart contract is definitely an intimidating task at first, but I’m going to explain everything in a way that will give you a good understanding of how it all works.
    If this video helped you out, consider subscribing!
    #nft #ethereum #smartcontract
    📚 Resources from this video:
    Contract Code: github.com/ree...
    MetaMask: metamask.io
    Remix: remix.ethereum...
    🎵 Music in this video:
    Title: Summer - Bensound
    www.bensound.com
    Support by RFM - NCM: bit.ly/2xGHypM

ความคิดเห็น • 134

  • @ReeceHunter
    @ReeceHunter  2 ปีที่แล้ว +7

    Need to know how to easily generate 10,000+ NFTs in 5 minutes? Watch this: th-cam.com/video/lFDpBmoD62A/w-d-xo.html

    • @agnaldovalentim
      @agnaldovalentim ปีที่แล้ว +1

      Hi! Thanks a lot for the video! But I have a problem. Can you help me? I used your tutorial to generate a collection of 6k NFTs, but I can't mint many NFTs at the same time because the metamask says it can't mint the gas correctly. how to solve it? The information is correct! MAX_TOKENS = 6000;
      uint private constant TOKENS_RESERVED = 100;
      uint public price = 100000000000000;
      uint256 public constant MAX_MINT_PER_TX = 5900;

    • @sankaudaya341
      @sankaudaya341 6 หลายเดือนก่อน

      Hi sir, I'm in a big trouble. can u help me.. I loss my ethereum using remix site. How can I withdraw my eth to my metamas wallet.. pls help.. How can I contact u.. Pls help..

  • @sly_web3
    @sly_web3 2 ปีที่แล้ว +6

    Bro this is amazing thank you so much. I'm surprised at how little NFT minting contract tutorials there are on TH-cam. You explained this so well.

    • @ReeceHunter
      @ReeceHunter  2 ปีที่แล้ว +2

      Glad you liked it!

    • @paone9851
      @paone9851 ปีที่แล้ว +1

      exactly..

  • @luckz770
    @luckz770 ปีที่แล้ว +6

    how do you upload images and metadata? Also, how do you create a website with a 'mint' button?

  • @UCHIHA587
    @UCHIHA587 ปีที่แล้ว +1

    awesome 👍 video very clear explanation

  • @therealarieseffect
    @therealarieseffect ปีที่แล้ว

    I just made my 1st (Goerli) TEST Net Smart Contract, Thank you!

  • @doyoufeelluxi
    @doyoufeelluxi 2 ปีที่แล้ว +1

    This entire time I’ve been hearing about smart contracts I thought that I could put whatever I want it in the contract. Basically, stating what utilities everyone will be receiving wants to purchase be the NFT.

    • @ReeceHunter
      @ReeceHunter  2 ปีที่แล้ว +2

      You can, as long as you know how to code the utility you want

  • @dansierchio
    @dansierchio 2 ปีที่แล้ว +1

    When you get to open sea and there are boxes to upload digital art work, is that where you upload your work , and is it an original piece?
    Thanks

  • @MatthewParkers
    @MatthewParkers 2 ปีที่แล้ว +3

    This is awesome! Thank u mate for ur lessons, i ve subscribed since solana lessons, hopefully u will continue ur lessons. Ohh yeah, im work in crypto, cause i saw ur lesson in the past, and now im game developer in solana and ton, thank u, no, THANK U!!!!!

    • @Jrej_dev
      @Jrej_dev 2 ปีที่แล้ว +1

      Wow that's amazing! Well done.

    • @ReeceHunter
      @ReeceHunter  2 ปีที่แล้ว +1

      This is great to hear! I'm glad my videos have been a big help to you!

  • @NasSiddiq
    @NasSiddiq 2 ปีที่แล้ว +1

    Hello bro. Thank you for the information. but I want to ask, when I want to verify and publish, the contract page doesn't appear.
    what do I have to do ?

  • @waeltarifi7810
    @waeltarifi7810 2 ปีที่แล้ว

    13:48 when I am trying to mint, the transaction fails and I receive an error message : ''Transaction has been reverted by the EVM''. What should I do?

  • @bigmanny
    @bigmanny ปีที่แล้ว +1

    This was amazing! Very easy to follow. Thank you!

    • @riti9963
      @riti9963 ปีที่แล้ว

      Hey ??

  • @TheReactionBooth
    @TheReactionBooth 10 หลายเดือนก่อน

    So how would I add my collection of 5000 images and the Json describing the details and traits to OpenSea? Where in the code would you upload the Json files?

  • @funandsatisfyingwithnature
    @funandsatisfyingwithnature ปีที่แล้ว +1

    If I want to mint 10k at once mint per wallet should be 10000??

  • @AB.247
    @AB.247 ปีที่แล้ว +2

    Awesome and super easy video to follow. Do you or will you have a tutorial on how to host your own minting site on eth similar to the tutorial you had for Solana?

  • @ahmadsadr989
    @ahmadsadr989 ปีที่แล้ว +3

    This tutorial is great. But where is the actual NFT e.g. the artwork actually stored?

    • @vecin0
      @vecin0 3 หลายเดือนก่อน

      Thats the IPFS part but he doesnt go over that sadly

  • @oroyplata4565
    @oroyplata4565 ปีที่แล้ว

    Thank you very much for the information

  • @benlaorg5807
    @benlaorg5807 ปีที่แล้ว +1

    Perfect, thank you!

  • @usamaansari4231
    @usamaansari4231 ปีที่แล้ว

    What about withdrawAll function how can we recive minted amount from user in our wallet

  • @hassanabdulnour5489
    @hassanabdulnour5489 9 หลายเดือนก่อน

    I have a question, please. I listed 1000 nft and all of them appeared in sell mode. How do we make it a buy, thank you

  • @christophergilcrest7418
    @christophergilcrest7418 ปีที่แล้ว +1

    Reece thank you, easily best nft video out there. Quick question, with this contract is it possible to edit the metadata of an already minted NFT? Say you made a mistake in the metadata and the NFT is already minted, how would I edit that? I tried using the setbaseURI function. Would love any help, thank you!

  • @UA2WIN
    @UA2WIN ปีที่แล้ว

    Hi! Thanks a lot for your video. Am I understand correctly - you can't sell any NFT without contracts? I'm just starting to learn this theme and it's quite difficult for me for now. Thanks!

  • @WebWorksPro-v1z
    @WebWorksPro-v1z ปีที่แล้ว

    And how do you get your actual NFTs to show on opensea?

  • @KamranKhan-yi9gq
    @KamranKhan-yi9gq ปีที่แล้ว

    All things I've done, to make smart contract but flatterer option is not showing what should I do?? and also please tell me if I've no partner then can I add same wallet address to "withdrawAll external payable onlyOwner" option?? please I need to know this asap I'll be glade if you'll help me to solve this situation.

  • @bobbyreiter-z8h
    @bobbyreiter-z8h ปีที่แล้ว

    Hi Reece. Thanks for the video. The “flatener” is not available anymore. Is there any way that you could share the flattened version of the code with us? Thanks.

  • @josephchavira
    @josephchavira 9 หลายเดือนก่อน

    Where are you getting all the copy and pasting info??

  • @vtanz
    @vtanz ปีที่แล้ว

    Very nice demo. Please explain the steps to prevent hacking while minting or after minting and prevent security, vulnerability issues

  • @muyiming3194
    @muyiming3194 2 ปีที่แล้ว

    Hey Reece i face a question etherscan can show my mint transaction but i can't find my contract in opeansea

    • @ReeceHunter
      @ReeceHunter  2 ปีที่แล้ว

      On the main net or a test net?

  • @sofiachuviniva654
    @sofiachuviniva654 2 ปีที่แล้ว

    Hello! Thank you so much for the video! But I have a problem. Could you help me? After the mint nft, the images in the opensea are not loaded. But all the information is displayed. Actually, you have the same thing at the end of the video. How do I make the images themselves available?

  • @dedfi-infinity
    @dedfi-infinity 9 หลายเดือนก่อน

    hey bro the code is not working there is a problem in line 71 can you please help me

  • @user-ro8kj9kz6q
    @user-ro8kj9kz6q ปีที่แล้ว +1

    cant see flattener pluging

  • @imujjawal9609
    @imujjawal9609 ปีที่แล้ว +1

    flattener p[lugin not visible

  • @Kr1em
    @Kr1em 2 ปีที่แล้ว +1

    Any chance you can make a tutorial on how to get the baseuri ipfs link? Trying to make a small collection for some friends but can't get any image to show. Would be a collection of 20 NFTs all the same image. Thanks !

    • @ReeceHunter
      @ReeceHunter  2 ปีที่แล้ว +1

      Maybe! In the meantime, if you've managed to upload your images to ipfs, the URI should look follow this format: ipfs://xxxxxxxxxxx/

    • @NeXusShorts_
      @NeXusShorts_ ปีที่แล้ว +1

      ​@@ReeceHunter how to create a minting site?

  • @mondhermo2406
    @mondhermo2406 ปีที่แล้ว

    Thank you so much sir

  • @krisrichards6740
    @krisrichards6740 ปีที่แล้ว

    For someone who has zero education on this, huge clap, was easily followable, i intend to copy and paste a contract, and edit the total supply, name of project, as it has the commands that i will use when i deploy my collection.
    looking through it, only part i feel i am a little stuck it with the ipfs, in your video very clear,
    string public baseExtension = ".Json."; is how it looks with the code i am seeing, would i be correct to remove the Json and replace with the direct link to the Cloud Pinata for ensuring it is using the correct metadata?
    much appreciate any help given, have a great day

  • @miguelgoncalves1001
    @miguelgoncalves1001 2 ปีที่แล้ว

    Can i use the lazy minting function on this code??

  • @cuiziyou
    @cuiziyou ปีที่แล้ว

    what should we do there's no FLATTENER contract anymore

  • @beztela2487
    @beztela2487 2 ปีที่แล้ว

    what testnet is relevant now? but The Rinkeby testnet explorer has been discontinued and set to read-only on October 5th, 2022.

  • @m.n.5176
    @m.n.5176 ปีที่แล้ว

    Hi. My contract works fine on testnet but when i try to deploy on mainnet it doesnt work. Can someone help?Thanks

  • @zaimweb9496
    @zaimweb9496 ปีที่แล้ว +1

    I'm facing this problem : We were not able to estimate gas. There might be an error in the contract and this transaction may fail. Gas it's very expansive

    • @riti9963
      @riti9963 ปีที่แล้ว

      !!!

    • @thecooleststufficouldfind
      @thecooleststufficouldfind ปีที่แล้ว +3

      This is because you chose to mint all your NFTs yourself. You should set up your project so that the minting can be done by people who you have on your whitelist and a public mint. This allows the public to pay for the minting fees and deploys each NFT to the blockchain as they're minted by the people who are buying your NFTs. Not necessarily lazy minting but kind of.
      Just look up public mint lazy mint things like this and you'll see each person will have to pay $20 on average per NFT so it saves you a bunch of money and if they mint everything everything will appear on Open Sea, AND you get to say that you're sold out, which gives a little more value to your project because if you can sell 10,000 NFTs during a public mint process you will be much more successful

    • @riti9963
      @riti9963 ปีที่แล้ว

      ​@@thecooleststufficouldfind ❤❤

    • @unknown-pt2jq
      @unknown-pt2jq ปีที่แล้ว

      @@thecooleststufficouldfind hey bro I want to learn about this can you help mee? I have a project

  • @josegregorioalbertigarcia2098
    @josegregorioalbertigarcia2098 2 ปีที่แล้ว

    bro where are u getting all the codes u putting in there? can we have a link for that?

    • @ReeceHunter
      @ReeceHunter  2 ปีที่แล้ว

      github.com/reecehunter/youtube/blob/main/contracts/simple-nft.sol

  • @VM-iw6hn
    @VM-iw6hn ปีที่แล้ว

    I keep having “gas limit” errors, any solution? 🙏🏻

  • @hunainaslam53
    @hunainaslam53 ปีที่แล้ว

    flattener pluging not show in plugin section

  • @ContractorDeployer
    @ContractorDeployer ปีที่แล้ว

    is this erc721a?

  • @jopadjr
    @jopadjr 2 ปีที่แล้ว

    31st...Thanks Reece. I'm just wondering if you can insert (like an option button to convert to NFT) in an Android app

  • @thinkcrypto8643
    @thinkcrypto8643 ปีที่แล้ว

    How to do this on zksync

  • @abderdh
    @abderdh 2 ปีที่แล้ว

    how i put the image/NFT I HAVE draw

  • @Neo..isTheOne
    @Neo..isTheOne ปีที่แล้ว

    How can I add more than one mint address?😢😢

  • @paulapoblete1090
    @paulapoblete1090 2 ปีที่แล้ว +4

    so cool! I am learning python so I was able to follow the logic, but I am new to NFT and minting, where can I learn more? I want to explore becoming a smart contract developer. TIA!

    • @ReeceHunter
      @ReeceHunter  2 ปีที่แล้ว +1

      Just keep watching TH-cam videos and reading online!

  • @viratvashisht7844
    @viratvashisht7844 2 ปีที่แล้ว

    i got an error = devlaration error: identifier not found or not unique

  • @lagutakaku
    @lagutakaku ปีที่แล้ว

    How to create airdrop project for Cryptocurrencies

  • @toddfang4197
    @toddfang4197 2 ปีที่แล้ว

    how to limit the max number of mint of one wallet?

  • @Iuliangi2230
    @Iuliangi2230 ปีที่แล้ว

    But how can i post this on my website

  • @marlahidalgo1333
    @marlahidalgo1333 2 ปีที่แล้ว

    How do we make a minting page?

  • @ContractorDeployer
    @ContractorDeployer ปีที่แล้ว

    btw i followed these step by step, dont know if anything has changed since then but verifying the contract fails.

  • @UmarFarooq-mb1xo
    @UmarFarooq-mb1xo 2 ปีที่แล้ว

    First of all thank you soo much for all these amazing videos.
    And my question is that I just joined Fiverr for smart contract development but i don't know how to deliver smart contract to client can you plss help me

  • @buurduli4362
    @buurduli4362 2 ปีที่แล้ว

    Hey Reece. This contract works perfectly but it doesn’t let me mint more than 1 per Transaction, I’ve tried multiple times and I did everything exactly in the video. can you help me please 🙏 ❤

    • @ReeceHunter
      @ReeceHunter  2 ปีที่แล้ว

      What is your MAX_MINT_PER_TX variable set to? Did you alter the code in any way?

    • @buurduli4362
      @buurduli4362 2 ปีที่แล้ว

      @@ReeceHunter I’ve sent you a DM on twitter with screenshots. please check when you can

  • @ContractorDeployer
    @ContractorDeployer ปีที่แล้ว

    also when i try to use your updated contract i get this error: Error: not found contracts/DefaultOperatorFilterer.sol

  • @RastCrypt
    @RastCrypt 2 ปีที่แล้ว

    I got error on remix

  • @mrsnine8780
    @mrsnine8780 ปีที่แล้ว

    İ don't have rinkeby network.

  • @raye6593
    @raye6593 2 ปีที่แล้ว

    Can you teach us how to do a Aptos nft?

  • @elisabethnose4767
    @elisabethnose4767 ปีที่แล้ว

    Is this still good? Will it still work today?

  • @paone9851
    @paone9851 ปีที่แล้ว

    why uisng "external" all the time ??

  • @riti9963
    @riti9963 ปีที่แล้ว

    How to set price to 0.0007 ???

  • @alekseic2581
    @alekseic2581 ปีที่แล้ว

    thanks!

  • @pubgadda1770
    @pubgadda1770 2 ปีที่แล้ว

    Bro you didn't provided codes ... Plz give

    • @ReeceHunter
      @ReeceHunter  2 ปีที่แล้ว

      github.com/reecehunter/youtube/blob/main/contracts/simple-nft.sol

  • @mrsnine8780
    @mrsnine8780 ปีที่แล้ว

    0.1 eth ? Why?

  • @lensterxyz
    @lensterxyz ปีที่แล้ว

    Can't a contract like this be deleted?

  • @cryptoxolo
    @cryptoxolo 2 ปีที่แล้ว +1

    Awesome

  • @AdamLo
    @AdamLo 2 ปีที่แล้ว +1

    Goat

  • @beztela2487
    @beztela2487 2 ปีที่แล้ว +1

    thx

  • @moopersnfts
    @moopersnfts ปีที่แล้ว

    Make a video on this code is no longer working😪

  • @moopersnfts
    @moopersnfts ปีที่แล้ว

    hello bro

  • @channltest-qz2xy
    @channltest-qz2xy 4 หลายเดือนก่อน

    OMG2 , NFT cant be trade by C2C, ppl just send the NFT to others for free..... OMG

  • @moopersnfts
    @moopersnfts ปีที่แล้ว

    Make a video on this code is no longer working

  • @channltest-qz2xy
    @channltest-qz2xy 4 หลายเดือนก่อน

    omg, everyone can mint it , not only the contract deployer ...

  • @phayaworks
    @phayaworks 2 ปีที่แล้ว

    100% good tutorial, 0% code provided

    • @ReeceHunter
      @ReeceHunter  2 ปีที่แล้ว +1

      So sorry! Here it is: github.com/reecehunter/youtube/blob/main/contracts/simple-nft.sol

    • @phayaworks
      @phayaworks 2 ปีที่แล้ว

      @@ReeceHunter Thanks bro! 😉

  • @avisekhmishra3134
    @avisekhmishra3134 ปีที่แล้ว

    THIS CODE DOSENT WORK ANY MORE

  • @sankaudaya341
    @sankaudaya341 6 หลายเดือนก่อน

    Hi sir, I'm in a big trouble. can u help me.. I loss my ethereum using remix site. How can I withdraw my eth to my metamas wallet.. pls help.. How can I contact u.. Pls help..

  • @martinhansen1743
    @martinhansen1743 2 ปีที่แล้ว +1

    Yo, yet again another AMAZING video! you are legit the best to explain all this stuff, keep up the excellent work!! I have 2 questions I hope you may answer here or in a separate video since I assume many would be interested in knowing this:
    1: How do I add a "allowList" function to the contract, where the mintPrice is different and they will be minting prior to "public"?
    2: How do I make the images "preReveal" and reveal them later - let's say 24 hours later? If I have a collection size of 1000, do I need 1000 "unrevealed" images (like a black screen), or is 1 enough since it's the same image?
    I hope you have time to answer this in a separate video since I know many of my friends and people in my network watch your videos for help
    And yet again, thank YOU for sharing your knowledge and experience on this - I really appreciate it!
    EDIT: Saw you have made this: github.com/reecehunter/youtube/commit/80a3b3ee236b33837dac94c6dd1492b40dc4d531

  • @RaceleNFTs
    @RaceleNFTs ปีที่แล้ว

    How much cost eth on smart contact

  • @RaceleNFTs
    @RaceleNFTs ปีที่แล้ว

    How much cost this time ?

  • @moopersnfts
    @moopersnfts ปีที่แล้ว

    Make a video on this code is no longer working

  • @moopersnfts
    @moopersnfts ปีที่แล้ว

    Make a video on this code is no longer working

  • @moopersnfts
    @moopersnfts ปีที่แล้ว

    Make a video on this code is no longer working

  • @moopersnfts
    @moopersnfts ปีที่แล้ว

    Make a video on this code is no longer working

  • @moopersnfts
    @moopersnfts ปีที่แล้ว

    Make a video on this code is no longer working

  • @moopersnfts
    @moopersnfts ปีที่แล้ว

    Make a video on this code is no longer working

  • @moopersnfts
    @moopersnfts ปีที่แล้ว

    Make a video on this code is no longer working

  • @moopersnfts
    @moopersnfts ปีที่แล้ว

    Make a video on this code is no longer working

  • @moopersnfts
    @moopersnfts ปีที่แล้ว

    Make a video on this code is no longer working

  • @moopersnfts
    @moopersnfts ปีที่แล้ว

    Make a video on this code is no longer working