In this smart contract tutorial we create a lottery smart contract in Solidity, guiding you through the process step-by-step. We write, deploy and test our code using the remix editor. Topics covered include sending and receiving ether, random and pseudo-random number generation and more.
Part III - Build a UI for this smart contract using Web3js:
https://www.youtube.com/watch?v=8ElPDw0laIo
Source code for this video:
https://github.com/jspruance/block-explorer-tutorials/blob/main/smart-contracts/solidity/Lottery.sol
Remix IDE:
https://remix.ethereum.org/