hackquest logo

Crazd

Provably Determined Multiplayer Betting Platform on Mantle – Fast, Fair, and Non-Custodial

Videos

Tech Stack

Next
Go
Ethers
Web3

Description

Overview

CRAZD is a high-performance, on-chain multiplayer betting platform deployed on Mantle Network. The platform delivers sub-second game state synchronization, cryptographically verifiable outcomes, and instant settlement through smart contract integration.

Two flagship game modes are currently live:

  • Crash: Real-time multiplier game with continuous rounds

  • Candleflip: 8-second binary prediction markets

Problem Statement

Traditional online betting platforms suffer from fundamental trust and transparency issues:

  • Centralized outcome generation with no external verifiability

  • Delayed withdrawals requiring manual approval processes

  • Opaque server-side logic susceptible to post-bet manipulation

  • KYC requirements creating friction and privacy concerns

  • Custodial fund management introducing counterparty risk

Solution

CRAZD implements a trustless betting infrastructure with the following properties:

  • Pre-committed Outcomes - Game results are cryptographically locked via SHA-256 hashing before any bets are accepted

  • On-chain Settlement - All payouts execute atomically through verified smart contracts

  • Non-custodial Architecture - Player funds remain in user wallets until bet placement; winnings are returned directly

  • Permissionless Access - Wallet-based authentication only; no registration, KYC, or personal data collection

  • Public Verifiability - Server seeds are revealed post-game, enabling independent outcome reconstruction

Technical Architecture

Real-time Infrastructure

  • WebSocket-based state synchronization at 60fps

  • Sub-200ms latency for game state updates

  • Horizontal scaling support for concurrent game rooms

  • Persistent connection management with automatic reconnection

Blockchain Integration

  • Smart contract deployment on Mantle Sepolia Testnet

  • Contract Address: 0x80Fc067cDDCDE4a78199a7A6751F2f629654b93A

  • Gasless meta-transactions for improved UX (planned)

  • Direct contract calls for bet placement and payout settlement

Provably Fair System

  • Server seed generation using cryptographically secure randomness

  • SHA-256 hash commitment published before betting window opens

  • Seed revelation upon game completion for public verification

  • Deterministic outcome derivation from seed + game parameters

Game Modes

Crash

  • Multiplier begins at 1.00x and increases exponentially

  • Players cash out at any point to lock in current multiplier

  • Game terminates at predetermined crash point (unknown to players)

  • Round duration: 10 seconds to 2 minutes

  • Real-time visibility of all active player positions

  • Live cashout and rug notifications broadcast to all participants

Candleflip

  • Binary outcome prediction (Bullish/Bearish)

  • 40-tick price simulation over 8-second duration

  • 2x payout on correct prediction, full loss on incorrect

  • Parallel room support for simultaneous position management

  • Independent seed per room ensuring outcome isolation

Platform Features

  • Multiplayer Experience - Live player activity feeds, real-time bet tracking

  • Social Layer - Integrated chat system with message persistence

  • Competitive Rankings - Global leaderboard sorted by cumulative profit

  • Responsive Design - Full mobile and desktop compatibility

  • Wallet Integration - Privy-powered authentication supporting MetaMask, WalletConnect, and embedded wallets

Constraints & Limitations

  • Currently deployed on Mantle Sepolia Testnet only

  • Maximum bet limits enforced per round

  • Rate limiting on consecutive bet placement

  • WebSocket connection required for real-time features

  • Smart contract balance constraints affect maximum payout capacity

Roadmap

  • Public verification API for programmatic game auditing

  • Mainnet deployment following security audit completion

  • Additional game modes under development

  • Enhanced analytics and player statistics dashboard

  • Tournament and multiplayer competition features

Contract: 0x80Fc067cDDCDE4a78199a7A6751F2f629654b93A (Mantle Sepolia)

Progress During Hackathon

A complete on-chain multiplayer betting platform on Mantle featuring two provably fair game modes (Crash & Candleflip), real-time WebSocket infrastructure at 60fps, SHA-256 hash-committed outcomes, instant smart contract payouts, live multiplayer feeds, integrated chat system, global leaderboard, Privy wallet authentication, PostgreSQL persistence, and full testnet deployment with verified contracts

Fundraising Status

Self-funded, built during hackathon. Seeking grants from Mantle ecosystem, angel investment for mainnet + audit, and strategic partnerships. Funds would go toward security audit, mainnet deployment, infrastructure, and marketing.
Team Leader
SSounak Dey
Project Link
Sector
Gaming