House Protocol

Lets anyone be the house, plug in liquidity for betting games, and play provably fair bets.

House Protocol

Created At

HackMoney 2026

Winner of

Yellow

Yellow - Integrate Yellow SDK: Trading apps/Prediction markets/Marketplaces 3rd place

Project Description

House Protocol lets anyone become the house.

Liquidity providers deposit into an ERC4626 vault and earn yield as their capital backs the house side of betting games. Developers tap into that liquidity through an SDK to build fast, gasless betting experiences without managing bankroll or settlement infrastructure. Players enjoy instant bets with provably fair outcomes, verified on-chain through a commit-reveal mechanism in the HouseSession contract. All gameplay runs off-chain via Yellow Network's Nitrolite state channels, so bets resolve instantly without gas fees. Only deposits and withdrawals hit the chain.

Three roles, one protocol: stake it, build it, play it, own it. House Protocol.

How it's Made

To build House Protocol, we ended up having to host our own Nitrolite Clearnode. Yellow Protocol's public Sepolia Clearnode had limited token support, and their scanner at nitrolite-scanner.dev stopped updating.

Smart Contracts were built with Foundry. The core is HouseVault, an ERC4626 vault (OpenZeppelin) where LPs deposit USDH and receive sUSDH shares. We extended the internal deposit hook so every deposit automatically forwards funds into Nitrolite's on-chain Custody contract under the operator's address. No idle capital. HouseSession is a separate contract handling provably fair verification through commit-reveal: the app commits a hashed seed before the game, then reveals it on-chain afterward so anyone can verify the randomness was legit.

Frontend is React with Vite. Auth is handled through Privy for frictionless wallet login. Players connect, deposit USDH into custody, and start playing. Everything game-related happens off-chain through state channels, so the UI feels instant with no transaction confirmations mid-game.

Backend uses PostgreSQL with Prisma for session management, bet validation, seed storage for provably fair games, and the operator's co-signing logic for Nitrolite app sessions.

State channels via Nitrolite make the whole thing feel fast. Players and the operator open app sessions off-chain, bets resolve through signed state updates, and only final outcomes settle on-chain. Zero gas during gameplay, near-instant resolution. The Nitrolite SDK (@erc7824/nitrolite) handles auth, sessions, and state management, while viem covers all on-chain interactions.

The stack pieces together as: Privy for login, ERC4626 vault for liquidity, self-hosted Nitrolite Clearnode for off-chain sessions, commit-reveal on HouseSession for provable fairness, and Foundry for contract testing and deployment to Sepolia.

background image mobile

Join the mailing list

Get the latest news and updates

House Protocol | ETHGlobal