{
  "protocol": "x402",
  "version": 2,
  "description": "AttaGo uses the x402 protocol for USDC micropayments. No account required — payment IS authentication for agent endpoints. x402 requests receive business-tier data (all futures tokens).",
  "asset": "USDC",
  "facilitator": "https://facilitator.payai.network",
  "documentation": "https://attago.bid/docs/openapi.yaml",
  "flow": {
    "summary": "Send request → receive HTTP 402 with PAYMENT-REQUIRED header → sign payment → retry with PAYMENT-SIGNATURE header",
    "libraries": ["@x402/fetch", "@x402/evm", "@x402/svm"]
  },
  "endpoints": [
    {
      "path": "/v1/agent/score",
      "method": "GET",
      "priceUsd": 0.10,
      "description": "Full trading data for a single crypto asset (business-tier: all futures tokens)"
    },
    {
      "path": "/v1/agent/data",
      "method": "GET",
      "priceUsd": 0.45,
      "description": "Full market data for all tracked assets (business-tier: all futures tokens)"
    },
    {
      "path": "/v1/api/data/{token}",
      "method": "GET",
      "priceUsd": 0.10,
      "description": "Per-token data push (registered users, after bundled credits)"
    },
    {
      "path": "/v1/mcp",
      "method": "POST",
      "description": "MCP server — get_asset_score ($0.10), get_market_data ($0.45), get_fear_greed (free), list_assets (free)"
    }
  ],
  "dataTiers": {
    "description": "Futures token coverage varies by subscription tier. x402 pay-per-request always receives business-tier data.",
    "tiers": {
      "free": { "futuresTokens": "Top 8 by volume", "note": "AVAX always included" },
      "basic": { "futuresTokens": "Top 16 by volume", "note": "AVAX always included" },
      "pro": { "futuresTokens": "Top 32 by volume", "note": "AVAX always included" },
      "business": { "futuresTokens": "All tracked futures tokens", "note": "Full coverage" }
    },
    "x402Default": "business"
  },
  "registeredAgentFlow": "Agents can register via Cognito API for tier-based subscriptions with discounts over pay-per-request. See https://attago.bid/.well-known/agents.json for the registration flow and economics.",
  "networks": [
    {
      "name": "Base",
      "caip2": "eip155:8453",
      "type": "evm",
      "usdc": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
    },
    {
      "name": "Avalanche",
      "caip2": "eip155:43114",
      "type": "evm",
      "usdc": "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"
    },
    {
      "name": "Polygon",
      "caip2": "eip155:137",
      "type": "evm",
      "usdc": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"
    },
    {
      "name": "Arbitrum",
      "caip2": "eip155:42161",
      "type": "evm",
      "usdc": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831"
    },
    {
      "name": "Optimism",
      "caip2": "eip155:10",
      "type": "evm",
      "usdc": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"
    },
    {
      "name": "Solana",
      "caip2": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "type": "svm",
      "usdc": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
    }
  ],
  "bundles": [
    { "name": "$5 bundle", "priceUsd": 5, "credits": 60 },
    { "name": "$25 bundle", "priceUsd": 25, "credits": 350 },
    { "name": "$50 bundle", "priceUsd": 50, "credits": 800 }
  ]
}
