CricketVoteCrypto is a Web3-powered IPL prediction platform where users participate in match-based prediction questions and earn CVT (Cricket Vote Token) as rewards. The platform merges fantasy cricket and decentralized Web3 technology, ensuring transparent, fair, and community-driven match predictions.
Users connect their MetaMask wallets, vote on real-time IPL match questions using CVT tokens, and claim rewards based on prediction accuracy — all handled by smart contracts and Merkle tree proofs to ensure trust and scalability.
- ✅ Web3 Authentication via MetaMask
- 🎯 Vote on real-time IPL match questions
- 🏆 Merkle-based fair reward system
- 📈 Gamified stats and leaderboard
- 🧑💼 Robust Admin Panel
- 💸 Earn & claim CVT tokens through smart contracts
- User signs up using MetaMask and receives 10 CVT tokens.
- Admin creates prediction questions for IPL matches (e.g., "Will there be a six in this over?").
- Users vote on predictions before the deadline using their tokens.
- After the match, the admin marks correct answers.
- A Merkle tree is generated of all correct users and the Merkle Root is pushed on-chain.
- Users claim rewards by submitting Merkle Proofs to the contract.
🔐 Only the Merkle Root is stored on-chain, making it efficient and secure.
- Frontend: Next.js, Tailwind CSS
- Smart Contracts: Solidity (ERC-20 + Merkle reward logic)
- Blockchain: Sepolia Ethereum Testnet
- Wallet Auth: MetaMask
- Database: MongoDB
- Tools: Ethers.js, Hardhat (optional), Merkle Tree JS
Users view upcoming matches, vote on predictions, and see their CVT balance.
Real-time match questions appear here — users can vote with CVT tokens.
After voting on match questions, users can visit the "Your Predictions" section to:
- ✅ See all matches they’ve voted on
- 📊 Track the number of predictions won, lost, or pending
- 🧠 Analyze performance and accuracy
- 🪙 Claim CVT rewards for correct predictions
This section enhances engagement by helping users reflect on their prediction trends and success rate.
🔁 The predictions section updates in real-time as match results are submitted.
Admins manage matches, questions, results, and generate Merkle roots.
- Node.js v18+
- MetaMask Extension
- MongoDB (local or cloud)
- Sepolia ETH for wallet testing
# Clone the repo
git clone https://github.com/basictech01/cricketvoteblockchain.git
cd CricketVoteCrypto
# Install dependencies
npm install


