Skip to content

ErAdar8/Blockchain-lottery

Repository files navigation

Lottery DApp (Sepolia)

A decentralized lottery application built with React, Vite, and TypeScript, connected to a live smart contract on the Ethereum Sepolia testnet.

Users can enter the lottery by sending ETH, while the contract manager can pick a winner via an on-chain transaction.

Tech Stack

React + Vite + TypeScript

Tailwind CSS

ethers.js v6

Ethereum (Sepolia)

MetaMask

Smart Contract

Network: Sepolia

Contract: Lottery

Address: 0x9EcCB13BC15d00a675A8a7fB46fbBA20f2b096D3

Features

Wallet connection via MetaMask

Enter lottery with ETH

View prize pool and participant count

Manager-only access to pick a winner

Proper network and permission handling

Local Development npm install npm run dev

Deployment

Designed for deployment on Vercel using Vite. No environment variables required.

Notes

Uses Sepolia testnet (test ETH only)

No private keys or secrets in the frontend

All transactions are signed via MetaMask

License

MIT

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors