{
  "openapi": "3.0.0",
  "info": {
    "title": "AI Option",
    "description": "Decentralized prediction market on Arbitrum. Endpoints describe markets, provider stakes, slashing rules, and current gas — everything an AI agent needs to budget a transaction.",
    "version": "1.1"
  },
  "servers": [
    {
      "url": "https://aioption.ai"
    }
  ],
  "paths": {
    "/api/all.json": {
      "get": {
        "summary": "List all option markets",
        "operationId": "getAllOptions",
        "responses": {
          "200": {
            "description": "All prediction markets across factory versions"
          }
        }
      }
    },
    "/api/providers.json": {
      "get": {
        "summary": "List provider registries, active providers, staking requirements, slashing rules, and current gas price",
        "operationId": "getProviders",
        "responses": {
          "200": {
            "description": "Per-registry: minStakeEth, ownerRenounced, providers[] with appId, stakeEth, pricePerResolutionEth, totalResolved, availableUntil"
          }
        }
      }
    },
    "/api/gas.json": {
      "get": {
        "summary": "Current Arbitrum L2 gas price",
        "operationId": "getGas",
        "responses": {
          "200": {
            "description": "gas.wei, gas.gwei"
          }
        }
      }
    }
  }
}