hackquest logo

Lottery System

A simple Ethereum smart contract that lets users join a lottery with 0.01 ETH and randomly rewards one winner with the entire pool.

Công nghệ sử dụng

Solidity

Sự miêu tả

Basic Lottery is a lightweight and minimal smart contract written in Solidity that allows anyone to participate in a decentralized lottery by contributing a fixed amount of 0.01 ETH. Once multiple participants have joined, the contract enables a random selection of one winner, who automatically receives the total balance held by the contract. Designed purely for educational and demonstration purposes, the contract uses block-based pseudo-randomness to determine the winner, making it unsuitable for production use due to the potential for manipulation. With no external dependencies or libraries, it provides a clean and accessible introduction to Ethereum smart contracts, Ether transfers, and basic on-chain randomness.

Tiến độ hackathon

30

Trạng thái huy động vốn

0
Trưởng nhóm
KKartikey Garg
Liên kết dự án
Ngành
DeFiAI