This is a decentralized application (DApp) for a smart contract-based lottery on the mumbai blockchain. The app was developed using Next.js and React, with integration with Ethereum smart contracts through the ethers.js library.
The Home page is responsible for displaying information about the lottery, allowing users to purchase tickets, withdraw winnings, and perform other lottery-related operations.
Users can purchase tickets to participate in the lottery. The ticket price is obtained from the smart contract and the user can purchase 10 tickets at a time.
The smart contract allows the winners to be drawn at random. The contract administrator can trigger the draw through the application dashboard.
Users can withdraw their lottery winnings, and the operator's commission can also be withdrawn through the app.
- Next.js
- React
- Thirdweb
- ethers.js
- Solidity (for smart contracts)
- Clone the repository:
git clone https://github.com/ChristieCardoso/lottery-dapp.git
- Install dependencies:
cd lottery-dapp npm install
- Start the development server:
npm run dev
Contributions are welcome! Feel free to open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.