Built on X Layer · OKX OnchainOS

A Sovereign
Multi-Agent Trading Economy

Four autonomous AI agents — each with a TEE wallet — that earn, spend, trade, and compound profits entirely onchain. Multi-agent orchestration execution. No human in the loop. The mesh funds itself.

Chain

Chain

X Layer

Agents

Agents

4 Agents

Payments

Payments

x402 Protocol

API Provider

API Provider

OKX OnchainOS

Wallet

Wallet

OKX Agentic Wallet

Four Sovereign Agents. One Economy.

Each agent earns by selling intelligence and spends to acquire it. Together they form a self-sustaining multi-agent economy — no external funding required.

Scout

Signal Detection · Earns USDG

Monitors X Layer using OKX smart money signal and hot-token APIs. Detects whale moves, trending tokens, and unusual volume. Sells signals via x402 — earns USDG every time Analyst pays.

Analyst

Risk Scoring · Pays + Earns

Pays Scout for signals via x402. Runs OKX security scans, holder concentration checks, and GPT-4o risk scoring. Publishes scored opportunities behind its own x402 endpoint — earns from Executor.

Executor

Autonomous Execution · Pays to Trade

Pays Analyst for scores ≥ 40 via x402. Builds OKB → USDC swap calldata via OKX DEX Aggregator. Signs with OKX TEE Agentic Wallet and broadcasts to X Layer. Every trade returns a verifiable txHash.

Orchestrator

Economy Governance · Compounds Profits

Monitors the full agent economy every cycle. Tracks earn/spend ratio across all agents. When the mesh shows surplus USDG earnings, Orchestrator compounds them back into OKB capital — growing the trading base without human top-ups.

One Cycle. Four Agents. Self-Sustaining.

Every 30 minutes, the mesh runs a full orchestration cycle — from signal detection to trade execution to profit compounding.

01

Scout detects a signal

OKX smart money and hot-token APIs surface high-strength signals on X Layer. Scout stores the signal in Supabase and makes it available behind an x402 paywall — earning USDG each time Analyst buys.

02

Analyst pays Scout and scores

Analyst sends an EIP-3009 USDG transfer signed by its OKX TEE wallet. Scout settles on-chain via OKX x402 API. Analyst runs OKX security + holder checks and scores the signal with GPT-4o.

03

Executor pays Analyst and trades

Score ≥ 40 triggers execution. Executor pays Analyst via x402, builds OKB → USDC swap calldata from OKX DEX Aggregator, signs via TEE, and broadcasts to X Layer. Real txHash on OKLink.

04

Orchestrator governs and compounds

Orchestrator aggregates earn/spend metrics across all agents. When surplus USDG earnings accumulate above threshold, it compounds them back into OKB capital — keeping the mesh self-sustaining cycle after cycle.

x402 Protocol

Agents pay agents.
Onchain. Every time.

Every piece of intelligence in LiquidMesh is behind an x402 paywall. When an agent wants data, it signs an EIP-3009 USDG transfer using its OKX TEE wallet and sends it in the HTTP header. The server calls OKX to verify and settle — no escrow, no intermediary, real on-chain settlement.

Scout's signal endpoint: 0.001 USDG
Analyst's score endpoint: 0.002 USDG
All settlement via OKX /api/v6/x402/settle
// x402 payment flow
Analyst GET /scout/signal
← 402 Payment Required
← X-Payment-Required: {scheme, maxAmount, payTo}
Analyst gen-msg-hash (OKX TEE)
Analyst HPKE decrypt + Ed25519 sign
Analyst GET /scout/signal
X-Payment: base64(EIP-3009 payload)
Scout OKX /api/v6/x402/verify
Scout OKX /api/v6/x402/settle
← txHash: 0xabc…
← 200 OK + signal data

FAQ

Watch the economy run.

Four sovereign agents. Real TEE wallets. Real swaps. Every 30 minutes on X Layer — earning, trading, and compounding.