← Back to Projects

Case Study

SignalRelay / Alphanet Core

Polymarket signal oracle that sells its Bayesian edge for $0.01 USDC per call, settled on Base via x402 and Privy-authorized agents.

Executive Summary

SignalRelay is an autonomous Polymarket sentiment oracle that earns USDC by selling its Bayesian trading edge. A Privy-authorized consumer agent spends USDC to hire it: one human approval, then autonomous micropayments over HTTP on Base Sepolia.

Problem & Constraints

Downstream trading agents need probabilistic edge, not subscriptions. SignalRelay shows usage-based, per-signal machine commerce: any agent can find the endpoint, pay $0.01 USDC on Base, and get a calibrated Bayesian signal.

Architecture

Provider (FastAPI + x402 ASGI) watches Polymarket + news → Bayesian posterior → paywalled GET /api/trade//rationale. Consumer (Privy TEE wallet) pays $0.01 USDC per signal via x402 facilitator on Base.

Methodology

  • Extended polymarket-sentiment-agent with x402 payment middleware gating rationale endpoint
  • Built Privy Agent Authorization consumer with live on-chain USDC settlement ($0.01/call)
  • LLM used purely as NLP parser; deterministic Bayesian math computes edge
  • One-command demo script verifies balance debit and 200 OK alpha response

Results & Metrics

MetricResult
Payment$0.01 USDC/call
ChainBase Sepolia
AuthPrivy TEE signing
Settlementx402 facilitator

Tech Stack

Python, FastAPI, x402, Privy, Base, USDC, Polymarket API

Future Work

Mainnet deployment, multi-market signal catalog, agent discovery registry.

Links