How to Create an NFT Minting Smart Contract (Ethereum)

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ก.ย. 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

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

  • @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 4 หลายเดือนก่อน

      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 ปีที่แล้ว +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.

  • @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!

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

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

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

      Hey ??

  • @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

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

    Perfect, thank you!

  • @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 19 วันที่ผ่านมา

      Thats the IPFS part but he doesnt go over that sadly

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

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

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

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

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

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

  • @kaitlynmorell7393
    @kaitlynmorell7393 ปีที่แล้ว +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

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

  • @NasSiddiq
    @NasSiddiq ปีที่แล้ว +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 ?

  • @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!

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

    cant see flattener pluging

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

    Thank you very much for the information

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

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

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

    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

  • @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 ปีที่แล้ว

      !!!

    • @nobodyislisting
      @nobodyislisting ปีที่แล้ว +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 ปีที่แล้ว

      ​@@nobodyislisting ❤❤

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

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

  • @paulapoblete1090
    @paulapoblete1090 ปีที่แล้ว +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  ปีที่แล้ว +1

      Just keep watching TH-cam videos and reading online!

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

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

  • @dansierchio
    @dansierchio ปีที่แล้ว +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

  • @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!

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

    Thank you so much sir

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

    Goat

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

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

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

    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?

  • @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.

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

    what should we do there's no FLATTENER contract anymore

  • @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.

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

    flattener p[lugin not visible

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

    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

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

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

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

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

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

    Awesome

  • @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

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

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

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

    thanks!

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

    thx

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

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

  • @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?

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

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

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

    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?

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

    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?

  • @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

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

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

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

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

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

      On the main net or a test net?

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

    But how can i post this on my website

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

    why uisng "external" all the time ??

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

    is this erc721a?

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

    How to do this on zksync

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

    How to create airdrop project for Cryptocurrencies

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

    Is this still good? Will it still work today?

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

    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

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

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

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

    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  ปีที่แล้ว

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

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

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

  • @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

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

    How to set price to 0.0007 ???

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

    İ don't have rinkeby network.

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

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

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

    flattener pluging not show in plugin section

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

    Can't a contract like this be deleted?

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

    I ran into a problem at the end and lost 120 USD and the contract didn't go trough. Could you help me please? I also sent a more detailed e-mail to you.

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

      Nerede sıkıntılı yaşadın

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

      @@alperbugra6979 creation of NFT pending...
      creation of NFT errored: [TIMEOUT] Timeout for call sendAsync from udapp
      creation of NFT pending...
      creation of NFT errored: Returned error: {"jsonrpc":"2.0","error":"MetaMask Tx Signature: User denied transaction signature.","id":4504022143404410}
      0x2474B56600cb5F65bC152AC76B47DDAB6FE1E47A
      contract adress
      contract creation code storage out of gas

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

    0.1 eth ? Why?

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

    How do we make a minting page?

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

    I got error on remix

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

    how i put the image/NFT I HAVE draw

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

    Can you teach us how to do a Aptos nft?

  • @martinhansen1743
    @martinhansen1743 ปีที่แล้ว +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

  • @moopersnfts
    @moopersnfts 11 หลายเดือนก่อน

    Make a video on this code is no longer working😪

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

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

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

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

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

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

  • @moopersnfts
    @moopersnfts 11 หลายเดือนก่อน

    hello bro

  • @moopersnfts
    @moopersnfts 11 หลายเดือนก่อน

    Make a video on this code is no longer working

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

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

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

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

  • @avisekhmishra3134
    @avisekhmishra3134 11 หลายเดือนก่อน

    THIS CODE DOSENT WORK ANY MORE

  • @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! 😉

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

    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..

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

    How much cost eth on smart contact

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

    How much cost this time ?

  • @moopersnfts
    @moopersnfts 11 หลายเดือนก่อน

    Make a video on this code is no longer working

  • @moopersnfts
    @moopersnfts 11 หลายเดือนก่อน

    Make a video on this code is no longer working

  • @moopersnfts
    @moopersnfts 11 หลายเดือนก่อน

    Make a video on this code is no longer working

  • @moopersnfts
    @moopersnfts 11 หลายเดือนก่อน

    Make a video on this code is no longer working

  • @moopersnfts
    @moopersnfts 11 หลายเดือนก่อน

    Make a video on this code is no longer working

  • @moopersnfts
    @moopersnfts 11 หลายเดือนก่อน

    Make a video on this code is no longer working

  • @moopersnfts
    @moopersnfts 11 หลายเดือนก่อน

    Make a video on this code is no longer working

  • @moopersnfts
    @moopersnfts 11 หลายเดือนก่อน

    Make a video on this code is no longer working

  • @moopersnfts
    @moopersnfts 11 หลายเดือนก่อน

    Make a video on this code is no longer working

  • @moopersnfts
    @moopersnfts 11 หลายเดือนก่อน

    Make a video on this code is no longer working