Skip to main content
Otto X brings the Otto AI agent swarm to the X Layer ecosystem. Same x402 thesis — pay per call, no API keys, payment IS the authentication — now settling on X Layer mainnet via OKX’s Onchain OS infrastructure. Base URL: https://xlayer.ottoai.services Chain: X Layer Mainnet (Chain ID: 196) Payment: On-chain micro-payments on X Layer via OKX Facilitator Discovery:

How It Differs from x402.ottoai.services

x402.ottoai.servicesxlayer.ottoai.services
ChainBase, Polygon, SolanaX Layer (196)
FacilitatorCDP (Coinbase)OKX Facilitator
Payment TokenUSDCNative X Layer payments
SDK@x402/express (Coinbase)@okxweb3/x402-express (OKX)
Endpoints30+15
FocusFull agent swarmDEX + market intel + AI tools
Both deployments serve the same underlying agent intelligence. Otto X adds X Layer-native DeFi endpoints (swap quotes, token pricing, approvals) powered by OKX DEX Aggregator.

OKX Onchain OS Usage

ModuleHow It’s Used
x402 SDK (@okxweb3/x402-express, @okxweb3/x402-evm, @okxweb3/x402-core)Payment middleware gating all 15 paid endpoints via OKXFacilitatorClient on X Layer
DEX Aggregator API v6HMAC-authenticated calls for swap quotes, token pricing, registry, and ERC-20 approvals on chain 196
Agentic WalletProject on-chain identity (0xa3db6825de8222e9f8bac136eeb2f65d49a88fcf)
OKX API AuthHMAC-SHA256 request signing for all DEX interactions

Pricing Overview

X Layer DEX Endpoints

EndpointPriceDescription
POST /swap$0.01DEX swap quotes + unsigned calldata via OKX DEX Aggregator
GET /market-alpha$0.005Live token pricing derived from on-chain DEX quotes
GET /price?token=0x...$0.002Single token USD price via DEX quote
GET /all-tokens$0.002All tokens supported on X Layer DEX
GET /approve?token=0x...&amount=N$0.005ERC-20 approval calldata for DEX router

Market Intelligence

EndpointPriceDescription
GET /crypto-news$0.001Real-time crypto news with sentiment analysis
GET /token-alpha?symbol=BTC$0.10Premium token intelligence — news, sentiment, futures
GET /kol-sentiment$0.10Aggregated sentiment from top 50 crypto KOLs
GET /trending-altcoins$0.10Top 3 trending altcoins with analysis
GET /mega-report$0.25Comprehensive daily market briefing
GET /token-security?address=0x...$0.10Token contract security audit
GET /funding-rates?symbol=BTC$0.10Derivatives funding rates & open interest
GET /defi-analytics?protocol=aave$0.10DeFi protocol analytics

AI Tools

EndpointPriceDescription
GET /generate-meme?prompt=...$0.50AI image generation (Gemini 3 Pro)
GET /llm-research?prompt=...$0.50AI research assistant with web search

Free Endpoints

EndpointDescription
GET /Landing page + JSON service discovery
GET /healthService health check
GET /tokensCurated token registry (16 tokens)
GET /llm.txtAI-readable service catalog
GET /.well-known/x402x402 discovery document

x402 Payment Flow (OKX)

The flow is the same as our Base/Polygon deployment, but settlement happens on X Layer via OKX Facilitator instead of CDP Facilitator.
1. Send request  →  GET /crypto-news
2. Get 402       ←  Payment Required ($0.001, X Layer)
3. Pay on-chain  →  Transfer on X Layer mainnet (chain 196)
4. Retry + proof →  GET /crypto-news + payment header
5. Verified      →  OKX Facilitator confirms payment
6. Get data      ←  News report with sentiment

Token Registry

Otto X maintains a curated registry of 16 X Layer tokens, available for free at GET /tokens.
CategoryTokens
NativeOKB
StablecoinsUSDT, USDG, USDC, USDe, frxUSD
WrappedWETH, WOKB, XBTC, XETH, XSOL, XOKSOL
DeFisUSDe, rsETH, LINK
MemeXDOG
The paid GET /all-tokens endpoint returns the full list from OKX DEX Aggregator (100+ tokens).

Quick Start

# Health check (free)
curl https://xlayer.ottoai.services/health

# Token registry (free)
curl https://xlayer.ottoai.services/tokens

# AI-readable catalog (free)
curl https://xlayer.ottoai.services/llm.txt

# Paid endpoint (returns 402 with payment instructions)
curl https://xlayer.ottoai.services/crypto-news
For a full client example showing discovery and the 402 payment flow, see examples/client.ts in the GitHub repo.

Roadmap

  • V2: Agentic Wallet holding assets and executing trades autonomously on X Layer
  • Automated yield: Earn-pay-earn loops — agents compound returns across X Layer DeFi
  • Full swarm migration: All 20+ Otto AI services available on X Layer
  • Uniswap integration: Uniswap V3 pools on X Layer as additional liquidity source