BetUA: A Decentralized Sports Betting and Predictions Protocol for P2P markets
Inspiration
I’m a die-hard sports fan—soccer and basketball especially—and love guessing what’ll happen next in a game. When I saw the Electroneum Hackathon 2025 on Devpost I got pumped. Coming from marginalized countries, the centralization nature of the betting and predictions markets never favors the users with many painpoints such as unfavourable odds, untimely payouts, restrictions and much more. Electroneum’s promise of fast, cheap transactions and its 4 million+ users—many without bank accounts—sparked an idea: a sports prediction app where fans bet, chat, and tip each other with ETN. The comments twist came from X, where I saw users hyping each other up. I wanted to bring that energy to the blockchain and make fandom pay off.
What it does
BetUA is a decentralized, mobile-first platform on the Electroneum blockchain. Fans bet ETN on game outcomes—like “PSG wins” or “Mbappé scores first”—comment on the action, and tip each other for great takes. Smart contracts settle bets in 5 seconds, thanks to Electroneum’s speed, while low fees make micro-tips (e.g., 0.1 ETN) viable. It’s a fan-driven micro-economy: predict to win, comment to engage, tip to reward—all tied to a slick app experience.
“BetUA: Predict, Bet, Earn ETN!”
How we built it
We pieced Play It together with a lean stack:
- Smart Contracts: Wrote
BettingPool.solfor general bets and claims,SpecificBet.solfor player-specific predictions, andCommentHub.solfor comment logging—all in Solidity, tested on Electroneum’s testnet with Hardhat and deployed to mainnet. - Frontend: Built a React Native mobile app—users bet, comment, and tip from one game screen, linked to ETN wallets via WalletConnect and ethers.js.
- Backend: A Node.js server queues comments (stored on IPFS, hashed on-chain) and pulls mock sports data.
- Oracle: Simulated a Chainlink feed for scores—e.g., “Mbappé scored”—to trigger payouts.
- Demo: Mocked a PSG vs. Man City game, bet 50 ETN on the win, 20 ETN on Mbappé, tipped 1 ETN for a comment—all settled fast.
Challenges we ran into
- Data Sync: Getting sports results into contracts was a puzzle; our mock feed worked, but live integration needs more time.
- Storage: On-chain comments were too costly, so we pivoted to IPFS late—setup was a scramble.
- UI: The Frontend still had some issues displaying ETN. Tipping buttons looked clunky on small screens; late-night tweaks fixed it, barely.
- Testing: Wallet balances lagged in testnet demos—nail-biting to debug mid-build.
- Chainlink Oracle for live games for the demo
- I worked solo on the project so the workload was heavy but worth it, learnt alot more.
Accomplishments that we're proud of
- Micro-Economy: Nailed a working ETN tipping system—1 ETN for “Mbappé’s on fire!” lands in 5 seconds. Judges should love that!
- Speed: Bets and tips settle instantly—Electroneum’s finality is a game-changer.
- Mobile Fit: The app feels smooth and fits Electroneum’s unbanked audience—simple, fast, fun.
- Demo: Pulled off a live PSG game mock—bet, comment, tip, payout—all in one flow.
- Community: An interactive Leaderboard for top performers, Comments and tips turn into a reward loop—fans stay hooked.
What we learned
- EVM Power: Electroneum’s compatibility with Solidity and its speed opened my eyes—micro-transactions are the future.
- Oracles: Grasped how to pipe real-world data on-chain—tricky but doable.
- User Hooks: Tipping isn’t just flair—it’s a motivator; small rewards drive big engagement.
- Crunch Time: Built focus under pressure—days to deadline sharpened my priorities.
- Electroneum Edge: Low fees and fast blocks beat bigger chains for this use case hands down.
What's next for BetUA
- Live Data: Live and real sports APIs—full Premier League or NBA coverage.
- Scale: Add more sports—cricket, esports—and multi-game betting pools.
- NFTs: Mint “Top Predictor” badges as NFTs on Electroneum for bragging rights.
- Polish: Smooth out the app UI and add social sharing—let fans flex their wins on X.
- Growth: Pitch it to Electroneum’s community—4M+ users could turn this into a global fan hub.
Built With
- ankrrpc
- chainlink
- chakraui
- ether.js
- express.js
- hardhat
- node.js
- react
- solidity
- typescript
- websockets
Log in or sign up for Devpost to join the conversation.