How to build an NFT raffle blockchain/web3 app

Поделиться
HTML-код
  • Опубликовано: 30 июн 2024
  • In this video, we'll build a simple NFT raffle application where the owner of the contract can put an NFT up to be raffled. Users can then purchase raffle entries and the owner can then select a random winner. We'll build our own custom raffle smart contract and then built our application.
    *Mumbai testnet support has been officially deprecated. Transition to the Amoy testnet for improved scalability and reduced gas fees.*
    Demo repo: github.com/watase-eth/raffle-app
    Token Transfer Contract: thirdweb.com/watase.eth/Lotte...
    Smart contract random numbers: docs.chain.link/vrf/v2/subscr...
    thirdweb Docs: portal.thirdweb.com/
    Chakra UI docs: chakra-ui.com/getting-started
    Join our Community of over 30,000 Web3 builders: / discord
    thirdweb Official Site: thirdweb.com/dashboard
    thirdweb Twitter: / thirdweb
    Timestamps:
    00:00 Introduction
    00:52 Create raffle contract
    25:53 Deploy raffle contract
    28:17 Create and setup application
    31:30 Build raffle application
    01:41:11 Demo - Raffle application
  • НаукаНаука

Комментарии • 61

  • @Brian-vs9sd
    @Brian-vs9sd 9 месяцев назад

    Another great video. This is a really helpful video to show how to get a complete project up and running on the BlockChain and Web. Also easy to customise how you want it.

    • @thirdweb_
      @thirdweb_  9 месяцев назад

      Glad it was helpful! We will take your suggestion and add it to our list of potential video ideas.

  • @izikseun2639
    @izikseun2639 10 месяцев назад

    This is great my man...nice one 👍

  • @sinicvukaj2974
    @sinicvukaj2974 11 месяцев назад

    Because of you IAM a better web3 dev. Thank u

  • @justinholbein9776
    @justinholbein9776 11 месяцев назад

    Great tutorial man thank you 🙌

    • @thirdweb_
      @thirdweb_  11 месяцев назад

      Glad you liked it!

  • @ISRamBaluu
    @ISRamBaluu 11 месяцев назад

    You are awesome man!!! As always!!! PinPoint!!!

    • @thirdweb_
      @thirdweb_  11 месяцев назад

      Thanks again!

  • @SamanthaJohns-bb4zk
    @SamanthaJohns-bb4zk 2 месяца назад

    99Bitcoins is gonna make history, screenshotting this for my future biopic 🚀🎬

  • @bossgd100
    @bossgd100 11 месяцев назад

    cool i will integrate that in my project

  • @abdu1wahid105
    @abdu1wahid105 11 месяцев назад

    Very useful pattern thanks.

    • @thirdweb_
      @thirdweb_  11 месяцев назад

      Glad it was helpful!

  • @pevidex
    @pevidex 11 месяцев назад

    nice content, thanks.

    • @thirdweb_
      @thirdweb_  11 месяцев назад

      Glad you liked it!

  • @nihitverma5784
    @nihitverma5784 11 месяцев назад

    Build auction dapp 😊

  • @burakbektas740
    @burakbektas740 11 месяцев назад

    nice video

  • @user-lo9ec6hv7e
    @user-lo9ec6hv7e 6 месяцев назад

    Love ur video❤❤❤❤❤❤❤ you Are smart my friend✌️👍

  • @jopadjr
    @jopadjr 5 месяцев назад

    124th...Thanks Sean. Great tutorial !!!

    • @thirdweb_
      @thirdweb_  5 месяцев назад

      You're welcome!

  • @harny7121
    @harny7121 10 месяцев назад +1

    i'm trying this but i dont have forge on windows pc. what do i do?

  • @jackiecollins9759
    @jackiecollins9759 Месяц назад

    Was waiting for a lottery one, but didn't see one in the contracts list on third web. I line pancake swaps version but hard to implement the code as a clone.

  • @LeoDFox
    @LeoDFox 5 месяцев назад

    Hello top video! But I have an issue when I call the pickwinner function, it’s like there is an approval issue

    • @thirdweb_
      @thirdweb_  5 месяцев назад +1

      To better support with your issue, open a ticket in the Discord and share the specific error you are receiving.

  • @Oliver-ik7eu
    @Oliver-ik7eu 11 месяцев назад

    A very wonderful and very useful tool, but I think that Unreal Engine is the best choice for games, so this tool must support the Unreal Engine system. Please provide us with information about when this can be done

    • @thirdweb_
      @thirdweb_  11 месяцев назад

      Unreal Engine SDK is in our pipeline of future projects. Currently only Unity SDK 👍

    • @aamamalia8862
      @aamamalia8862 11 месяцев назад

      @@thirdweb_ sir how to deploy on other blockchain besides mumbai network like georli

  • @Leuviah1337
    @Leuviah1337 11 месяцев назад

    🎉

  • @chrisonlinebuz7520
    @chrisonlinebuz7520 11 месяцев назад

    Thank you for your videos
    Please how can I reach you personally

  • @djyzac382
    @djyzac382 8 месяцев назад

    The code should have made the condition to show the
    winner's address with closing date on screen.

  • @Sagarkun
    @Sagarkun 8 месяцев назад +1

    what kind of vscode extension you are using bro if autofills most of the things accurately??

    • @thirdweb_
      @thirdweb_  8 месяцев назад +1

      Autofill is using GitHub Copilot

  • @zoomwarmetaverse64
    @zoomwarmetaverse64 11 месяцев назад

    buddy, record a video about an affiliate program on the blockchain, I’ve been asking you for a long time)) I really need it, but I don’t have enough brains to figure it out

    • @danielayesnu2537
      @danielayesnu2537 4 месяца назад

      What do you mean by affiliate program. Maybe he is not getting what you mean

  • @razorjhon2622
    @razorjhon2622 11 месяцев назад +1

    I think the contract has 2 bugs , the first one is the transfer balance to the owner , u need a modifier to protect the balance from getting RentryAttack, also u can reset the contract without ending the raffle so you can reset the smart contract addresses without choosing the winner

    • @thirdweb_
      @thirdweb_  11 месяцев назад +1

      Thank you for the feedback. We get those changes made to the contract in the repo and linked in the description.

    • @razorjhon2622
      @razorjhon2622 11 месяцев назад +1

      @@thirdweb_ Thank you so much for the great work ♥

  • @leezabutt9662
    @leezabutt9662 11 месяцев назад

    I am running into an error again and again while importing thirdweb unity sdk...
    Error is: PrecompiledAssemblyException:Multiple precompiled assemblies with the same name Newtonsoft.Json.dll included on the current platform.Only one assembly with same name is allowed per platform.
    The assembly with the same name is inside assets and libraries...kindly suggest me solution to resolve it.

  • @mileicampeonmundial
    @mileicampeonmundial 11 месяцев назад

    does it works with app ?

  • @danielayesnu2537
    @danielayesnu2537 4 месяца назад

    Can you make a video which uses usdt?

  • @AlhajiBad
    @AlhajiBad 2 месяца назад

    Do you sell these services

  • @GabrielXxXxXx
    @GabrielXxXxXx 9 месяцев назад

    Hi!
    I have a problem in 26:51 ... When I run the command 'npx thirdweb@latest deploy" the following error appears: "You don't have forge installed on this machine!"
    But I already have Foundry installed, it seems that vscode doesn't recognize it.
    Can someone help me?
    Thanks!

    • @thirdweb_
      @thirdweb_  9 месяцев назад

      If you need more help troubleshooting you can open a support ticket in our Discord and provide more details of the error.

  • @s_screation3358
    @s_screation3358 11 месяцев назад

    When I try to deploy smart contract, it ask for API secret key in terminal, what should I do ?

    • @thirdweb_
      @thirdweb_  11 месяцев назад +1

      You will need to generate an API key through thirdweb to get a secret key. This video here is a guide on how to do that: ruclips.net/video/G3bvXfE-OMg/видео.html

  • @user-rk3zb3qd9p
    @user-rk3zb3qd9p 9 месяцев назад

    Hey getting error while deploying contract on thirdweb
    × Compilation failed
    Error: Command failed: forge build --extra-output metadata
    warning: Unknown section [default] found in foundry.toml. This notation for profiles has been deprecated and may result in the profile not being registered in future versions. Please use [profile.default] instead or run `forge config --fix`, how to resolve this one. Thanks

    • @thirdweb_
      @thirdweb_  9 месяцев назад

      If you need more help troubleshooting you can open a support ticket in our Discord and provide more details of the error.

  • @hibosco
    @hibosco 3 месяца назад

    Where do you check that the admin actually owns the NFT?

    • @thirdweb_
      @thirdweb_  3 месяца назад

      You can check on the contract itself. You can find who the owner of a specific token ID is.

  • @bossgd100
    @bossgd100 11 месяцев назад

    Has the raffle contract been audited?

    • @thirdweb_
      @thirdweb_  11 месяцев назад

      This contract is not audited.

    • @bossgd100
      @bossgd100 11 месяцев назад

      @@thirdweb_ ha ok i trust you :)

  • @ricardofeliciano7025
    @ricardofeliciano7025 11 месяцев назад

    What about you guys starting to focus and make more vids about erc 20 instead of nfts?

    • @thirdweb_
      @thirdweb_  11 месяцев назад +1

      Thank you for the feedback. We do have some videos on creating ERC20 and staking that you can check out. But we can put more videos like this into our pipeline.

    • @ricardofeliciano7025
      @ricardofeliciano7025 10 месяцев назад

      @@thirdweb_ thanks for the answer, keep up the good work!

  • @danielayesnu2537
    @danielayesnu2537 4 месяца назад

    Does it mean only one person can put up a raffle?

    • @thirdweb_
      @thirdweb_  4 месяца назад

      Yes, for this example only the owner of the contract can set the raffle.

    • @hibosco
      @hibosco 3 месяца назад

      @@thirdweb_can you update to make it work for multiple users please? Or give some guidance on how would you do it?

    • @hibosco
      @hibosco 3 месяца назад

      @@thirdweb_ to allow anyone to create a raffle, do you have to have one contract per raffle? or that can be manage by a using a single contract ?

  • @Umbralweb
    @Umbralweb 11 месяцев назад

    Hello dude! i comment in several videos, but never hava a awster...please you can xplaind who can user DAI ?' and not MATIC?
    i now is importing interface... bla bla bla.,.,. but who can do that? somedy body find a video,? or something?
    or somebody of thirdweb team call xplaid that?