hackquest logo
  • 学习
  • 课程探索
  • 实战
  • 探索黑客松
  • 往期项目
  • 社区
  • 论坛
  • 全球活动
  • 我的社区
  • 共学营
  • 组织中心
  • 更多
    • 词汇表
    • 博客
    • 水龙头
    • 工作机会
    • 媒体工具包
    • 创始人
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.

技术栈

Solidity

描述

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.

本次黑客松进展

30

融资状态

0
队长
KKartikey Garg
项目链接
赛道
DeFiAI