🪟 Windows TippsBitLocker stuck on Decrypting or Encrypting in Windows 11(17.09.2026 um 00:29 Uhr)
🕵️ SicherheitslückenCVE-2026-69110 | Microck opencode-studio up to 2.4.3 missing authentication(17.09.2026 um 03:21 Uhr)
🪟 Windows TippsBitLocker stuck on Decrypting or Encrypting in Windows 11(17.09.2026 um 00:29 Uhr)
🕵️ SicherheitslückenCVE-2026-69110 | Microck opencode-studio up to 2.4.3 missing authentication(17.09.2026 um 03:21 Uhr)
🔧 Programmierung 🕛 vor 2 Monaten 3 Min Lesezeit
0

I open-sourced A full-stack, peer-to-peer coinflip betting game on Solana

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht
📺
dev.to




A full-stack, peer-to-peer coinflip betting game on Solana



A full-stack, peer-to-peer coinflip betting game on Solana. Players connect a wallet, create or join on-chain game rooms, and compete head-to-head for 2× the stake. The UI updates in real time over WebSockets, outcomes are resolved on-chain with Orao VRF, and the backend tracks rooms, chat, and match history in MongoDB.



I open-sourced






Why I built this




  • Learn full-stack Web3 game architecture (wallet + program + backend + UI)

  • Study provably fair randomness with on-chain VRF integration

  • Fork and customize a peer-to-peer on-chain betting room model



Most tutorials stop at a smart contract or a UI mockup. I wanted a complete vertical slice — wallet flow, on-chain logic, backend state, and a responsive frontend — so you can study or fork a production-shaped codebase.






What it does





  • Create a room — Pick Head or Tail, set bet amount, choose SOL or SPL token.


  • Join a room — Browse open games in the live lobby and match against another player.


  • PvP coinflip — When two players are in the same room, the backend triggers on-chain resolution.


  • 2× payout — The winner receives double the bet (fees apply on-chain).


  • Room expiration — Open rooms older than 5 minutes with no opponent are expired and refunded automatically.


  • Portfolio stats — Win count and total games per wallet.

  • Wallet connect — players sign in with a Solana wallet

  • Peer-to-peer rooms — create or join head-to-head matches






Architecture at a glance





  • Wallet layer — users connect a Web3 wallet to sign transactions


  • On-chain program — Anchor/Rust logic for escrow, rooms, and settlement


  • Randomness — verifiable flip outcomes via Orao VRF on Solana


  • Real-time layer — WebSocket events push room and flip state to the UI


  • Persistence — MongoDB stores rooms, chat, and historical match data


  • Application layer — TypeScript backend/frontend tying on-chain and off-chain flows




CODE
User Wallet  →  On-chain Program  →  VRF / Settlement

Backend (API + WebSockets) → MongoDB / state

Frontend UI (real-time)






Adjust the diagram to match your repo layout if components differ.






Tech stack




  • Solana

  • Anchor

  • TypeScript

  • MongoDB

  • WebSockets

  • Orao VRF

  • React






Quick start






CODE
git clone https://github.com/xxniiinxx/coinflip-casino.git
cd coinflip-casino






Setup steps:




  1. Install dependencies (see README — typically npm install or yarn)

  2. Copy .env.example to .env and fill in RPC, wallet, and API keys

  3. Run local validator or point to devnet/mainnet as documented

  4. Start the backend and frontend; connect wallet and create a test room



See the full README for environment variables, deploy scripts, and test commands: — How to set up and run coinflip-casino step by step





  • GitHub:






  • Disclaimer: Educational content only. Not financial advice. Gambling and trading involve risk; use responsibly and comply with local laws.






    anchor #betting #blockchaingame #casino #coinflip #cryptocurrency

    Vollständiger Original-Artikel
    Den kompletten Beitrag mit allen Details direkt auf dev.to lesen.
    ↗ Original-Artikel auf dev.to lesen
    Wie bewertest du diesen Beitrag?
    1 Klick Feedback
    Teilen mit Netzwerk & Team:

    Community-Analysen & Experten-Meinungen 0

    Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
    Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
    Community Pulse: Relevanz-Einschätzung
    1 Klick Experten-Votum
    🔴 Akute Relevanz 0%
    🟡 In Evaluierung 0%
    🟢 Keine Auswirkung 0%
    Spannende Innovation 0%
    Verwandte Story-Cluster & Quellen (Vektor-KI)
    Port 8095 Engine
    2 Quellen
    CVE-2026-92597 | Nodemailer up to 9.0.x Addressparser lib/addressparser input validation (EUVD-2026-81297)
    1 Quelle
    BitLocker stuck on Decrypting or Encrypting in Windows 11
    1 Quelle
    CVE-2026-92599 | hapijs joi up to 17.13.6/18.0.0-18.2.5 isoDate Joi.string.isoDate redos (EUVD-2026-81299)
    Ähnliche Beiträge
    🔍 Verwandte News

    Auch interessante Nachrichten I open-sourced A full-stack, peer-to-peer coinflip betting game on Solana

    Thematisch verwandte Begriffe: opensourced, fullstack, peertopeer, coinflip · 6 Treffer

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...