{
  "openapi": "3.1.0",
  "info": {
    "title": "DevX Address Poisoning Check",
    "version": "1.1.0",
    "description": "Address-poisoning check before an agent or wallet sends crypto: pass the sending wallet and recipient; we scan the sender's real on-chain history (Ethereum, Base, optional Avalanche) and flag lookalike recipients, zero-value/dust/fake-token poisoning transfers and bad EIP-55 checksums. Returns ok|caution|danger, the address you probably meant, and evidence tx hashes.",
    "termsOfService": "https://address-poisoning-check.nextill-pos.workers.dev/terms",
    "contact": {
      "name": "DevX",
      "email": "madebydevx@gmail.com",
      "url": "https://madebydevx.com"
    }
  },
  "servers": [
    {
      "url": "https://address-poisoning-check.nextill-pos.workers.dev"
    }
  ],
  "paths": {
    "/api/basic": {
      "get": {
        "summary": "Free, offline: is `to` a lookalike of any `known` address? Also EIP-55 checksum",
        "parameters": [
          {
            "name": "to",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "known",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "comma-separated trusted addresses (max 50)"
          }
        ],
        "responses": {
          "200": {
            "description": "result"
          }
        }
      }
    },
    "/v1/check": {
      "get": {
        "summary": "Paid (0.005 USDC, x402): on-chain address-poisoning check of a recipient against the sender's real history",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "chains",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "ethereum,base,avalanche (default ethereum,base)"
          }
        ],
        "x-payment-info": {
          "protocol": "x402",
          "x402Version": 2,
          "scheme": "exact",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "5000",
          "price_usd": 0.005,
          "payTo": "0xB3cDDccEe6B150c8efFD55B961afc0Ecefe7f247",
          "facilitator": "Coinbase CDP facilitator (api.cdp.coinbase.com/platform/v2/x402)"
        },
        "responses": {
          "200": {
            "description": "report"
          },
          "402": {
            "description": "Payment required (x402 v1 body + v2 PAYMENT-REQUIRED header)"
          }
        }
      }
    }
  }
}