Skip to content

A lottery smart contract automates participation , winner selection, and prize distribution transparently on a blockchain.

Notifications You must be signed in to change notification settings

sanjay-sol/Lottery-Smart_contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

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.

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

No packages published