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 - Наука
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.
Glad it was helpful! We will take your suggestion and add it to our list of potential video ideas.
This is great my man...nice one 👍
Because of you IAM a better web3 dev. Thank u
Great tutorial man thank you 🙌
Glad you liked it!
You are awesome man!!! As always!!! PinPoint!!!
Thanks again!
99Bitcoins is gonna make history, screenshotting this for my future biopic 🚀🎬
cool i will integrate that in my project
Very useful pattern thanks.
Glad it was helpful!
nice content, thanks.
Glad you liked it!
Build auction dapp 😊
nice video
Thanks!
Love ur video❤❤❤❤❤❤❤ you Are smart my friend✌️👍
124th...Thanks Sean. Great tutorial !!!
You're welcome!
i'm trying this but i dont have forge on windows pc. what do i do?
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.
Hello top video! But I have an issue when I call the pickwinner function, it’s like there is an approval issue
To better support with your issue, open a ticket in the Discord and share the specific error you are receiving.
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
Unreal Engine SDK is in our pipeline of future projects. Currently only Unity SDK 👍
@@thirdweb_ sir how to deploy on other blockchain besides mumbai network like georli
🎉
Thank you for your videos
Please how can I reach you personally
The code should have made the condition to show the
winner's address with closing date on screen.
what kind of vscode extension you are using bro if autofills most of the things accurately??
Autofill is using GitHub Copilot
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
What do you mean by affiliate program. Maybe he is not getting what you mean
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
Thank you for the feedback. We get those changes made to the contract in the repo and linked in the description.
@@thirdweb_ Thank you so much for the great work ♥
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.
does it works with app ?
Can you make a video which uses usdt?
Do you sell these services
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!
If you need more help troubleshooting you can open a support ticket in our Discord and provide more details of the error.
When I try to deploy smart contract, it ask for API secret key in terminal, what should I do ?
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
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
If you need more help troubleshooting you can open a support ticket in our Discord and provide more details of the error.
Where do you check that the admin actually owns the NFT?
You can check on the contract itself. You can find who the owner of a specific token ID is.
Has the raffle contract been audited?
This contract is not audited.
@@thirdweb_ ha ok i trust you :)
What about you guys starting to focus and make more vids about erc 20 instead of nfts?
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.
@@thirdweb_ thanks for the answer, keep up the good work!
Does it mean only one person can put up a raffle?
Yes, for this example only the owner of the contract can set the raffle.
@@thirdweb_can you update to make it work for multiple users please? Or give some guidance on how would you do it?
@@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 ?
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?