{
  "openapi": "3.1.0",
  "info": {
    "title": "ToolMint Base Token Safety JSON",
    "version": "0.1.0",
    "description": "Read-only Base ERC-20 risk heuristics for AI agents (not financial advice; never a 'safe' verdict). Pay per call with USDC on Base via x402. Never signs or sends transactions.",
    "x-guidance": "GET /check?address=0x\u2026 or GET /check/{address}. Unpaid calls receive HTTP 402 (USDC on Base). Free: /, /health, /openapi.json, /.well-known/x402.",
    "contact": {
      "email": "toolmint.dev@gmail.com",
      "name": "ToolMint"
    }
  },
  "paths": {
    "/health": {
      "get": {
        "operationId": "health",
        "summary": "Liveness",
        "security": [],
        "responses": {
          "200": {
            "description": "ok"
          }
        }
      }
    },
    "/check": {
      "get": {
        "operationId": "token_safety_query",
        "summary": "Base ERC-20 safety check by query",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ],
          "network": "eip155:8453",
          "payTo": "0xfbF7413bcB3a604936775C96FDbe0b0C9c9E37F5",
          "asset": "USDC",
          "assetAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "scheme": "exact",
          "amountAtomic": "30000"
        },
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ERC-20 contract address on Base"
          }
        ],
        "responses": {
          "200": {
            "description": "Heuristic risk JSON with provenance, unknowns and notChecked (only 2xx is charged)"
          },
          "400": {
            "description": "Invalid address (rejected before payment; not charged)"
          },
          "402": {
            "description": "Payment Required"
          },
          "404": {
            "description": "No contract code at address on Base (not charged)"
          },
          "502": {
            "description": "Base RPC unavailable (not charged)"
          }
        }
      }
    },
    "/check/{address}": {
      "get": {
        "operationId": "token_safety_path",
        "summary": "Base ERC-20 safety check by path",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ],
          "network": "eip155:8453",
          "payTo": "0xfbF7413bcB3a604936775C96FDbe0b0C9c9E37F5",
          "asset": "USDC",
          "assetAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "scheme": "exact",
          "amountAtomic": "30000"
        },
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Heuristic risk JSON (only 2xx is charged)"
          },
          "400": {
            "description": "Invalid address (rejected before payment; not charged)"
          },
          "402": {
            "description": "Payment Required"
          },
          "404": {
            "description": "No contract code at address on Base (not charged)"
          },
          "502": {
            "description": "Base RPC unavailable (not charged)"
          }
        }
      }
    }
  }
}