Smart Contract Tutorial for Beginners — Lottery dAPP [Part 1]by@api3
1,602 reads

Smart Contract Tutorial for Beginners — Lottery dAPP [Part 1]

October 4th 2022
9 min
by @api3 1,602 reads
tldt arrow
Read on Terminal Reader🖨️

Too Long; Didn't Read

In this tutorial we’ll be walking through building and deploying a decentralized lottery smart contract in Solidity using [Hardhat]. Anyone can choose a number 1–10,000 and buy a ticket to enter into a weekly lottery. Ticket revenue is collected into a pot in the contract. After 7 days, the contract will allow anyone to trigger the drawing. The contract will then call the [API3 QRNG[https://api3.org/QRNG] for a truly random number. The pot will be split amongst all users that chose this winning number.

Company Mentioned

Mention Thumbnail
featured image - Smart Contract Tutorial for Beginners — Lottery dAPP [Part 1]
API3 HackerNoon profile picture

@api3

API3

About @api3
LEARN MORE ABOUT @API3'S EXPERTISE AND PLACE ON THE INTERNET.
react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa