Duelana
Enables trustless peer-to-peer wagering on Solana with verifiable game outcomes and no centralized credential model.
A real-money crypto gambling platform built on Solana where players wager SOL tokens in provably fair casino-style games, including coinflip, jackpot, and multi-room blackjack with real-time gameplay.
01
Overview
Duelana is a browser-based crypto casino for Solana users. Players authenticate with Phantom wallet, deposit SOL converted to internal chips, and play across three games. Fairness uses cryptographic commitments verifiable after each round. Frontend runs as React SPA with GraphQL bootstrap and Socket.IO live updates into Redux.
02
The Challenge
Deliver trust-sensitive real-money gameplay with verifiable fairness, wallet-native auth, resilient real-time UX, and precise blockchain denomination handling.
03
Solution
Implemented ticket-hash provably-fair commitments, Phantom signature auth issuing JWT, dual data pipeline (Apollo + Socket.IO), and lamport-only internal arithmetic with display-boundary conversion.
04
Implementation Highlights
Provably Fair Gambling
Each round commits ticket_hash before resolution and exposes verification path after completion.
Blackjack Spatial Seating Engine
Seat positions adapt for 2-7 players with full client-side card scoring and ace handling.
function calculateBlackjackCardsPoints(cards: string[]): number {
let total = 0, aces = 0;
for (const card of cards) {
const val = getCardValue(card);
if (val === 11) aces++;
total += val;
}
while (total > 21 && aces > 0) { total -= 10; aces--; }
return total;
}
Dual-Source Real-Time State
Apollo loads initial snapshot, Socket.IO streams incremental updates into Redux slices.
Mock Dev Infrastructure
Mock Apollo link and mock socket paths allow full frontend work without backend availability.
05
Impact
- Players independently verify outcomes via provably fair ticket system
- Referral parameters in blackjack support organic growth loops
- Experience and level mechanics improve retention
- Wallet-signature auth removes email/password onboarding friction
06
Tech Stack
architecture & design
workflow
soft skill
languages & runtimes
database & orm
back end
front end
cloud / devops
07
Key Learnings
Lamport-only arithmetic avoids subtle floating-point wager bugs
Wallet signature auth needs strict JWT lifecycle design
Dual source pipelines require explicit reconciliation strategy
Provably fair mechanics are cheaper to design early than retrofit
Interested in building something similar?
Let's design a scalable solution tailored to your needs.
Schedule a Call