Lottery-Smart_contract is a smart contract which allows random players to participate in lottery draw by sending eth (minimum 1 eth) to the contract. Contract enables only if there are minimum 3 players . Only owner can run this contract to pick a random winner and when random player selected total eth in the contract will be transfered to his/her address. After completion of transferring funds to winner the contract gets reset (number of players enrolled will become zero) . Used keccak256 Algorithm to generate random value.
-
Notifications
You must be signed in to change notification settings - Fork 0
sanjay-sol/Lottery-Smart_contract
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A lottery smart contract automates participation , winner selection, and prize distribution transparently on a blockchain.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published