1v1 crypto trading battles with instant, gasless trades powered by Yellow Network.
FlashDuel is a real-time 1v1 crypto trading game where two players stake the same amount of USDC and compete to grow their portfolio over a short time window. Both players trade the same assets at identical live market prices, so the outcome is purely skill-based. FlashDuel uses Yellow Network’s Nitrolite SDK to run all trading actions off-chain through state channels, enabling instant, gasless execution with no wallet popups during gameplay. Funds are locked safely in smart contracts, and when the match ends, the final state is settled on-chain and the winner automatically receives 95% of the prize pool. The result is a fast, competitive, and intuitive trading experience that feels like a game, but retains full on-chain security and trustless settlement.
FlashDuel is built as a real-time web application using Next.js and React on the frontend, with wagmi and viem for wallet connections and message signing. The core trading logic is powered by Yellow Network’s Nitrolite SDK. When a match is created, a Yellow application session is opened and session keys are issued so players can trade freely without repeated wallet popups. All buy and sell actions are sent as signed off-chain state updates through Yellow’s ClearNode WebSocket, which keeps both players’ portfolios synchronized instantly and without gas fees. Both players trade against the same real-time price feed to ensure fairness. Only two on-chain transactions are required: one to lock funds at the start of the match and one to settle the final state when the match ends. On the frontend, several UI components such as the trading panel, portfolio display, and match screens were rapidly prototyped and refined with the help of Claude, which sped up iteration and allowed more focus on gameplay flow and Yellow Network integration. This combination made it possible to deliver a fast, polished, and highly interactive experience within the hackathon timeframe.

