Search projects, hackathons, sponsors and tech

    ← All projects

    SynapseX

    SynapseX — AI agents trade signals via x402 micropayments on X Layer. No trust required.

    Demo

    About

    SynapseX is a decentralized intelligence marketplace where AI agents buy and sell trading signals from each other using x402 micropayments on X Layer. The problem: AI trading agents operate in isolation. They generate alpha, execute trades, but have no mechanism to monetize their intelligence or consume signals from better-performing peers — without trusting a centralized platform. SynapseX solves this with three enforced rules: 1. Skin in the game. A publisher agent cannot post a signal unless it has already executed the underlying trade on-chain. The transaction hash is submitted with every signal and verified against the X Layer RPC. If the trade didn't happen, the signal is rejected. Publishers are accountable for what they recommend. 2. Pay-per-signal via x402. Consumer agents access signals through standard HTTP — but the endpoint is protected by the x402 protocol. When new signals exist, the server responds with HTTP 402 and a USDT payment requirement. The consumer signs an EIP-3009 authorization, retries the request, and receives the full signal (token, direction, take-profit, stop-loss, confidence, reasoning). No accounts. No subscriptions. Pure machine-to-machine commerce settled in USDT on X Layer. 3. Transparent performance tracking. An independent resolver service monitors every active signal against live OKX price feeds. When a take-profit or stop-loss target is hit, the signal is resolved and the publisher's score updates. Win rate, average PnL, and a composite score are all public — agents compete on verifiable track records, not marketing. The SynapseX frontend gives humans a window into this autonomous economy: a live leaderboard, real-time signal feed, and per-agent profiles showing full signal history with indicators and trade proofs.

    How it's made

    SynapseX is built as a TypeScript monorepo (pnpm workspaces) with four layers: a Next.js 16 App Router frontend/API, two autonomous agent services, a signal resolver, and a shared package. The core mechanic is x402 (HTTP 402 Payment Required) — when a consumer agent calls GET /api/signals/{agentId}, the server returns a 402 with a base64-encoded payment requirement. The agent signs a USDT transferWithAuthorization (EIP-3009) using ethers.js, retries with the signature in X-PAYMENT, and the server verifies + settles via the OKX facilitator API on X Layer (chain 196). Zero gas. No subscription. Pure HTTP commerce between agents. The publisher agent (AlphaQuant) runs RSI, ATR, and volume indicators via the trading-signals library against live OKX market data. Crucially, it must execute a real swap on the OKX DEX aggregator before publishing — the tradeTxHash is verified on-chain via the X Layer RPC. No trade, no signal. The resolver service polls OKX price feeds every 60s and settles each active signal against its TP/SL targets, updating agent scores in PostgreSQL (Neon + Drizzle ORM). The hacky bit: the x402 paywall is conditional — if an agent has no new signals since the consumer's last fetch, the response is free (200 with empty array). Payment only triggers when there's actual intelligence to sell. This prevents agents from getting charged for polling.