Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
YouTube Security VideosAndroid Police: Samsung is smashing records! #shorts #tech #phones(21.09.2026 um 13:55 Uhr)
YouTube Security Videosheise & c't: Bundesnetzagentur wollte diesen Futterautomaten verbieten(21.09.2026 um 13:53 Uhr)
YouTube Security VideosNeil Patel: Your Google Traffic Isn't An Asset It's A Loan #shorts(21.09.2026 um 14:05 Uhr)
Windows Tipps & SecurityF-14 A Tomcat Top Gun endlich als Revell Klemmbausteinmodell erhältlich(21.09.2026 um 14:27 Uhr)
Sichere ProgrammierungShow the Hand-Back Sample Before Approving an Agent Score(21.09.2026 um 14:15 Uhr)
Sichere ProgrammierungHybrid retrieval in one Postgres query: RRF over tsvector + pgvector(21.09.2026 um 14:15 Uhr)
YouTube Security VideosAndroid Police: Samsung is smashing records! #shorts #tech #phones(21.09.2026 um 13:55 Uhr)
YouTube Security Videosheise & c't: Bundesnetzagentur wollte diesen Futterautomaten verbieten(21.09.2026 um 13:53 Uhr)
YouTube Security VideosNeil Patel: Your Google Traffic Isn't An Asset It's A Loan #shorts(21.09.2026 um 14:05 Uhr)
Windows Tipps & SecurityF-14 A Tomcat Top Gun endlich als Revell Klemmbausteinmodell erhältlich(21.09.2026 um 14:27 Uhr)
Sichere ProgrammierungShow the Hand-Back Sample Before Approving an Agent Score(21.09.2026 um 14:15 Uhr)
Sichere ProgrammierungHybrid retrieval in one Postgres query: RRF over tsvector + pgvector(21.09.2026 um 14:15 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

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

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 …

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!




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 coinflip-casino for developers in Solana / Anchor smart contract development. This post walks through what it does, how the pieces fit together, and how to run it locally.



Live demo / site: https://www.flip.is/






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




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






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: https://github.com/xxniiinxx/coinflip-casino






Video walkthrough








What to explore in the repo




  • Program / contract entrypoints and account models

  • API routes and WebSocket event handlers

  • Frontend wallet adapter and game room components

  • Tests, scripts, and deployment configs






Contributing



Issues and PRs are welcome. If this helped you learn something, a ⭐ on GitHub makes it easier for others to find.






Links








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

Ä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...

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 ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-94097 | A vulnerability was determined in Netcore NBR200V2 1.3.241127.071246. Th…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick