Skip to content

A completely decentralized "coin-flip" type lottery on Ethereum

Notifications You must be signed in to change notification settings

vutsalsinghal/decentralised_lottery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Decentralised Lottery

Requirements

  • Install MetaMask extension
  • Remix - Solidity IDE
  • INFURA keys from here. This will enable us to work with Ropsten TestNet without hosting our own node. Infura will do the heavy lifting for us!

These are all the tools you need to delpoy the smart contracts and interact with it!

Deployment

  • Create ethereum account using MetaMask. Make sure to choose "Ropsten Test Network"
  • Request few ethers from the test faucet
  • Go to Remix solidity IDE and copy-paste the contents of lottery.sol file in the IDE.
  • Click on "Start to compile" from the Compile tab in the top right corner.
  • After compiling it, go to Run tab and click on "deploy". Metamask should bring up a popup asking you to confirm the transaction. If not, just open the Metamask extension and do it there.
  • A message at the bottom of the Remix console will notify you when the contract is deployed. You can click on the link to explore the transaction on ropsten.etherscan.io. Note the contracts address!

Releases

No releases published

Packages

No packages published