Gasless prediction market for social attention, settled by ERC-8004 AI agents
PulseMarkets is a real-time prediction market where users trade social attention instead of traditional outcomes. Built on Yellow Network's state channels (ERC-7824), it enables instant, gasless micro-bets on sentiment shifts, narrative momentum, and viral potential.
Users bet on questions like "Will Bitcoin Twitter attention spike 20% in the next hour?" Bets execute instantly without gas fees, providing seamless UX with no wallet popups after deposit. When markets expire, an autonomous AI settlement agent (ERC-8004) fetches real-time attention data from LunarCrush, applies threshold rules, and resolves outcomes with transparent reasoning and on-chain reputation.
Unlike Polymarket's orderbook or manual oracles, PulseMarkets uses parimutuel pooled outcomes with off-chain execution and AI settlement - making high-frequency attention trading economically viable through Yellow's infrastructure.
Yellow Network State Channels (ERC-7824): Integrated @erc7824/nitrolite SDK for gasless betting. Users deposit USDC once, then place unlimited micro-bets with sub-second confirmation via WebSocket to Yellow's ClearNode. All execution happens off-chain with settlement on Base.
ERC-8004 AI Settlement Agent: Built autonomous agent with Hono API that fetches LunarCrush attention data, applies threshold rules, generates transparent reasoning (OpenAI GPT-4o-mini), and logs results on-chain. Agent maintains verifiable on-chain identity and reputation score.
Frontend: Next.js 15 + React 19 + TypeScript. Privy for wallet auth, wagmi/viem for blockchain, Zustand for state. Parimutuel payout system splits pot proportionally among winners.
Key Challenge: Tight timeline for Yellow integration. Built hybrid simulation layer mirroring SDK behavior for seamless dev/demo while wiring real state channels.
Tech Stack: Bun runtime, @erc7824/nitrolite, LunarCrush API, Base chain, USDC, Tailwind v4, shadcn/ui.

