Loading video player...
I built Stanx, a real-time prediction market on Solana where fans can bet on YouTube creator outcomes. Think "will this MrBeast video hit 50M views by Tuesday" and putting actual money on it. Most prediction markets use an AMM, an automated pricing formula that does everything for you. I didn't do that. I built a real Central Limit Order Book, the same model professional exchanges like Binance use, where two actual users match against each other at a price they both agreed on, with everything settling on-chain. The hard problem was making it feel instant while living on a blockchain that takes 400ms per block. This video covers how I solved that, the full architecture, and the complete app in action. Chapters: 00:00 What is Stanx and why I built it 01:44 Creating a market 02:20 Architecture breakdown 05:02 App Demo Code: Frontend: https://github.com/yashop7/stanx Backend + Indexer: https://github.com/yashop7/StanX-backend Smart Contract: https://github.com/yashop7/StanX-Anchor-Contract Tech Stack: Solana + Anchor (smart contract), Rust + Tokio + Axum (backend), SQLx + PostgreSQL, Redis pub/sub, Next.js + TypeScript (frontend) Connect Twitter/X: https://x.com/yashtwt7 LinkedIn: https://www.linkedin.com/in/yash-gussian-462611299