Web3 Tutorial Project | Build a web3js dApp with a Solidity lottery smart contract on Ethereum

preview_player
Показать описание
In this project-based web3 tutorial we build a completed lottery dApp with a focus on how to build a UI for a lottery smart contract, using the web3js library.

Topics covered include: the web3js library, connecting a Metamask wallet, application binary interface (abi), NextJS, Truffle, Ethereum Rinkeby testnet, Chainlink VRN, deploying a Solidity smart contract to Ethereum and more.

Completed project code:

Lottery Smart Contract Part I

Lottery Smart Contract Part II

Ether faucet on Rinkeby testnet:

LINK faucet on Rinkeby testnet:

Address to LINK token on Rinkeby testnet:
Рекомендации по теме
Комментарии
Автор

Man i love that you explain every detail! thats something that is missing in the industry. Love it! just gained a sub !

josep
Автор

In pickWinnerHandler function you invoked payWinner() instead of pickWinner(). That's the reason it is not selecting winner at random.. you fixed it at 3:00:03.. you didn't have to split the function into two to generate the random result. great tutorial btw.. thanks alot !

karthikpuvvula
Автор

Where do we find the smart contract testing and deployment guide that you mention @45:15

atomsmovie
Автор

Your way of explaining is so great, subscribed!

damianwasilewski
Автор

One of the best web3 tutorial i have watched since i started my journey. Thank you

joseph
Автор

That was awesome. That's the first time I manage to follow a web3 tutorial. Thanks dude

WaveMrNight
Автор

Thank you, will you please share what's in your opion a good crypto token or app to invest in..

MrEricBloom
Автор

Just what I was looking for. Thanks a lot man! Learning about smart contracts nowdays and would definitely love to join a community discord server

adityasankhla
Автор

im trying to get truffle init to work from the vending machine tutorial cant seem to get it to work any suggestions

justintrudeou
Автор

Managed to complete through the course. Really helped alot. Thanks !!

prakhyatkhati
Автор

hi, could you teach me how to make a lottery like the one in pancake swap. a lottery with multiple winners and dividing the pot in differents % depending on the amount correct numbers from start to finish max 6 or 7 numbers. please. a video of this would be great. im trying to make a crypto lottery as a project for my class. I was wanting to make a DEX but i find the frontend a little bit to complicate for me. at the moment is to espensive for a class project could you make one in Polygon. also if i could use its own social token for the tickets that would be great

despertar
Автор

Could you do a quick example of how you could embed an NFT in your website design. For example if we wanted to mint our logo and then use the nft logo on the site.

SQLEinstein
Автор

Great tutorial!

I've been trying to get solc to work but there is a bug in version 0.8.14, downgraded to 0.8.13, and still get the same Error: Cannot find module './common/helpers'.

What kind of version are you using?
Downgrading to 0.4.25 is not an option because of a ParserError of the Lottery contract.

alizavras
Автор

Love the content! I will continue to support your channel! Your explanations are so easy to follow, as always! Thank you! P.S. I would love to join your Discord Server in the future! :)

yoshikagarner
Автор

Thank you so much for the awesome content :)

MananRupani
Автор

Really like this tutorial. However, got a read slice error after truffle migrate --network rinkeby command. Help!

DCKRONR
Автор

Loving the video already! Just a reminder that you should probably make a discord server for this my man, (I would love to help with it, it's what I do).

Cadaur
Автор

2:53:00

Timestamp for how to recompile your smart contract for quick retest

marksmusic
Автор

Just want I needed, thank you so much

cmc
Автор

Thanks for your videos they really help me understand whats going on. KEEP UP THE GR8 WORK

CDEXEDC
visit shbcf.ru