A decentralized lottery application built on the Solana blockchain. Users can enter the lottery by sending SOL, and a winner is randomly selected to receive the total prize pool.
This project demonstrates a fully functional blockchain-based lottery on Solana. It is built with Rust for on-chain smart contracts and a modern frontend to interact with the program.
Live Demo: [Add your live URL here]
- Solana – High-performance blockchain platform
- Rust / Anchor – Smart contract development
- React – Frontend library for building UI
- TypeScript – For type-safe frontend code
- Tailwind CSS – Utility-first styling
- Vite – Development server and build tool
- Node.js & npm
- Solana CLI installed
- Anchor framework installed
- Clone the repository:
git clone https://github.com/Vivek23456/solana-lottery.git
cd solana-lottery
Install frontend dependencies:
bash
Copy code
npm install
Run the development server:
bash
Copy code
npm run dev
Deploy/Interact with Solana program
Use solana-test-validator or your devnet wallet to test the lottery.
📦 Project Structure
bash
Copy code
solana-lottery/
├─ programs/ # On-chain Rust smart contracts
├─ src/ # Frontend source code
│ ├─ components/ # React components
│ ├─ pages/ # UI pages
│ └─ styles/ # Tailwind CSS
├─ package.json # Project dependencies
├─ Anchor.toml # Anchor project configuration
└─ README.md # Project documentation
⚡ Features
Enter lottery with SOL tokens
Random winner selection
Transparent and secure blockchain transactions
Frontend dashboard to view entries and prize pool
📈 Deployment
You can deploy the frontend to Vercel, Netlify, or GitHub Pages.
Smart contract programs are deployed to Solana devnet or mainnet using Anchor CLI.
📫 Contact
For questions, collaboration, or bug reports:
Email: [email protected]
LinkedIn: Vivek Atkari
GitHub: Vivek23456
Made with ❤️ on Solana
yaml
Copy code
---
I can also make a **more visual version** with badges, GIF screenshots, and a “How to Play” section so your README looks like a real product page for users.
Do you want me to do that next?# Solana Lottery
A decentralized lottery application built on the **Solana blockchain**. Users can enter the lottery by sending SOL, and a winner is randomly selected to receive the total prize pool.
---
## 🚀 Project Overview
This project demonstrates a fully functional blockchain-based lottery on Solana. It is built with Rust for on-chain smart contracts and a modern frontend to interact with the program.
**Live Demo:** [Add your live URL here]
---
## 🛠 Technologies Used
- **Solana** – High-performance blockchain platform
- **Rust / Anchor** – Smart contract development
- **React** – Frontend library for building UI
- **TypeScript** – For type-safe frontend code
- **Tailwind CSS** – Utility-first styling
- **Vite** – Development server and build tool
---
## 💻 Getting Started
### Prerequisites
- Node.js & npm
- Solana CLI installed
- Anchor framework installed
### Steps
1. **Clone the repository:**
```bash
git clone https://github.com/Vivek23456/solana-lottery.git
cd solana-lottery
Install frontend dependencies:
bash
Copy code
npm install
Run the development server:
bash
Copy code
npm run dev
Deploy/Interact with Solana program
Use solana-test-validator or your devnet wallet to test the lottery.
📦 Project Structure
bash
Copy code
solana-lottery/
├─ programs/ # On-chain Rust smart contracts
├─ src/ # Frontend source code
│ ├─ components/ # React components
│ ├─ pages/ # UI pages
│ └─ styles/ # Tailwind CSS
├─ package.json # Project dependencies
├─ Anchor.toml # Anchor project configuration
└─ README.md # Project documentation
⚡ Features
Enter lottery with SOL tokens
Random winner selection
Transparent and secure blockchain transactions
Frontend dashboard to view entries and prize pool
📈 Deployment
You can deploy the frontend to Vercel, Netlify, or GitHub Pages.
Smart contract programs are deployed to Solana devnet or mainnet using Anchor CLI.
📫 Contact
For questions, collaboration, or bug reports:
Email: [email protected]
LinkedIn: Vivek Atkari
GitHub: Vivek23456
Made with ❤️ on Solana