Skip to content

Simple Ethereum lottery smart contract allowing users to enter by sending Ether and selecting a winner randomly among participants. Utilizes basic randomness mechanism; lacks robustness for production-grade applications.

Notifications You must be signed in to change notification settings

ryzen-xp/XP-Lottery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XP Lottery DApp

XP Lottery Logo

Welcome to the XP Lottery decentralized application (DApp)! This DApp allows users to participate in a lottery by purchasing tickets using Ethereum. The lottery winner is chosen randomly among the participants.

Getting Started

To get started with the XP Lottery DApp, follow these steps:

  1. Clone the repository:

    git clone https://github.com/your-username/xp-lottery.git
  2. Navigate to the project directory:

    cd xp-lottery
  3. Open the index.html file in your preferred web browser.

  4. Connect MetaMask to the Ethereum network.

  5. Interact with the DApp by entering the lottery, setting the ticket price, and picking a winner.

Features

  • Enter Lottery: Participate in the lottery by purchasing a ticket.
  • Set Price: Set the price of a lottery ticket.
  • Pick Winner: Select a winner among the participants.
  • Connect to MetaMask: Connect MetaMask to enable interaction with the Ethereum network.

Smart Contract Details

  • Contract Address: 0xD4bC0f108002a1833C8CF65209C04626564C8eb4
  • Solidity Version: ^0.8.0
  • ABI: [Contract ABI]

Demo

[Link to Demo Video]

Contributing

Contributions are welcome! If you'd like to contribute to this project, please follow the contribution guidelines.

License

This project is licensed under the MIT License.

About

Simple Ethereum lottery smart contract allowing users to enter by sending Ether and selecting a winner randomly among participants. Utilizes basic randomness mechanism; lacks robustness for production-grade applications.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published