# ContractLens Smart Contract Security Scanner

> ContractLens Smart Contract Security Scanner is a paid API for AI agents from contractlens-api.appin60.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-14).

Runs Slither static-analysis on a Sourcify-verified EVM smart contract and returns security findings, proxy/upgradeability status, and privileged admin functions

## Facts

- Endpoint: GET https://contractlens-api.appin60.com/scan?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/contractlens-smart-contract-security-scanner-65292769
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kXHc-oM6A77kxoTcKy8yA

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability contractlens-smart-contract-security-scanner-65292769
```

Example prompt: Before I approve spending, can you run a security scan on the USDC contract at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base (chain ID 8453) — I want to know about any Slither findings, whether it's a proxy, and what admin functions like mint or pause exist?

## When to prefer this

Choose ContractLens when an AI agent needs to evaluate the security posture of a specific EVM smart contract before any on-chain interaction such as token approval, deposit, or trade. It is ideal for pre-transaction risk checks because it combines Slither static analysis with proxy resolution and admin-function enumeration in a single call. Prefer this over generic blockchain explorers when you need structured, machine-readable security verdicts rather than raw source code. It is especially valuable when checking tokens on Ethereum, Base, Arbitrum, Optimism, Polygon, or BNB Chain.

## Known failure modes

- Contract not verified on Sourcify — returns rejection without charge
- Invalid or malformed contract address — request fails with error
- Unsupported chain ID — only chains 1, 8453, 42161, 10, 137, 56 are supported
- Contract source too large or complex for static analysis — may time out
- Network or upstream Sourcify/Slither service unavailability

## How this service works

Smart contract security scan for AI agents: give a chain id and contract address, get Slither static-analysis findings (reentrancy, unchecked calls, arbitrary sends, etc.), proxy/upgradeability status and the list of owner/role-gated admin functions (mint, pause, blacklist, upgrade). Works on any Sourcify-verified contract on Ethereum, Base, Arbitrum, Optimism, Polygon, BNB. Use before approving, depositing into or trading a token/protocol. Unverified contracts are rejected without charge.

## Output

Returns a JSON object with: ok status, chain name, contract name, proxy type and implementation address (if applicable), owner/control info (EOA or multisig), a summary of Slither findings grouped by severity (High/Medium/Low/Informational) and count of privileged functions, full list of individual findings with check name/impact/confidence/description, and list of privileged functions with their access-control modifiers. Unverified contracts are rejected without scanning.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "chainId",
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "description": "Contract address (0x...). Must be verified on Sourcify. Proxies are followed to the implementation."
      },
      "chainId": {
       "type": "string",
       "description": "EVM chain id: 1 Ethereum, 8453 Base, 42161 Arbitrum, 10 Optimism, 137 Polygon, 56 BNB"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "chain": "Base",
  "proxy": {
   "type": "ZeppelinOSProxy",
   "implementation": "0x2Ce6311ddAE708829bc0784C967b7d77D19FD779"
  },
  "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "control": {
   "owner": {
    "kind": "EOA (single key)",
    "address": "0x3abd6f64a422225e61e435bae41db12096106df7"
   }
  },
  "summary": {
   "findingsByImpact": {
    "Low": 9,
    "Informational": 35
   },
   "privilegedFunctionCount": 11
  },
  "findings": [
   {
    "check": "shadowing-local",
    "impact": "Low",
    "confidence": "High",
    "description": "..."
   }
  ],
  "contractName": "FiatTokenProxy",
  "privilegedFunctions": [
   {
    "function": "mint(address,uint256)",
    "modifiers": [
     "onlyMinters"
    ]
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/contractlens-smart-contract-security-scanner-65292769/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from contractlens-api.appin60.com](https://www.zero.xyz/host/contractlens-api.appin60.com/llms.txt)
