{
  "openapi": "3.1.0",
  "info": {
    "title": "DevX 7702 Sweeper Check",
    "version": "1.1.0",
    "description": "EIP-7702 delegation & sweeper check for EVM wallets across 8 chains (Ethereum, Base, BSC, Arbitrum, OP, Polygon, Gnosis, Unichain). Paid report adds delegate bytecode analysis (sweeper/hard-coded forwarder heuristic), source-verification status, risk level and remediation advice. 1-20 addresses per call.",
    "termsOfService": "https://sweeper-check.nextill-pos.workers.dev/terms",
    "contact": {
      "name": "DevX",
      "email": "madebydevx@gmail.com",
      "url": "https://madebydevx.com"
    }
  },
  "servers": [
    {
      "url": "https://sweeper-check.nextill-pos.workers.dev"
    }
  ],
  "paths": {
    "/api/basic": {
      "get": {
        "summary": "Free: EIP-7702 delegation status on 8 chains for one address",
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "status"
          }
        }
      }
    },
    "/v1/check": {
      "get": {
        "summary": "Paid (0.01 USDC, x402): full sweeper/delegation report for 1-20 addresses",
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "0x address or comma-separated list (max 20)"
          }
        ],
        "x-payment-info": {
          "protocol": "x402",
          "x402Version": 2,
          "scheme": "exact",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "10000",
          "price_usd": 0.01,
          "payTo": "0xB3cDDccEe6B150c8efFD55B961afc0Ecefe7f247",
          "facilitator": "https://facilitator.payai.network"
        },
        "responses": {
          "200": {
            "description": "report"
          },
          "402": {
            "description": "Payment required (PAYMENT-REQUIRED header, x402 v2)"
          }
        }
      }
    }
  }
}