# 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.002/call, status unknown (last checked 2026-10-14).

Runs Slither static-analysis and returns security findings, proxy/upgradeability status, and admin function list for a Sourcify-verified EVM smart contract

## Facts

- Endpoint: GET https://contractlens-api.appin60.com/address?utm_source=zero.xyz
- Price: $0.002/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-aa8c2f23
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zblHMVq1PoRhNvqxVHmnx

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-aa8c2f23
```

Example prompt: Before I approve this token, can you scan the contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum (chain ID 1) for security issues — reentrancy, admin backdoors, upgradeability, anything like that?

## When to prefer this

Choose ContractLens when you need static security analysis of a specific EVM smart contract before a financial interaction — it uniquely combines Slither vulnerability scanning with proxy detection and admin function enumeration in a single call. Prefer it over generic block explorers when you need machine-readable security verdicts that an AI agent can act on. Best used before token approvals, DeFi deposits, or protocol integrations on Ethereum, Base, Arbitrum, Optimism, Polygon, or BNB Chain.

## Known failure modes

- Contract not verified on Sourcify — request rejected with no charge
- Invalid or malformed contract address format
- Unsupported chain ID provided
- Contract exists but has no source code available
- Network/RPC timeout during analysis
- Rate limiting or payment failure via x402 protocol

## 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 a security verdict including Slither static-analysis findings (reentrancy, unchecked calls, arbitrary sends, etc.), proxy/upgradeability status, list of owner/admin addresses, role-gated admin functions (mint, pause, blacklist, upgrade), chain name, and contract type. Unverified contracts are rejected without analysis.

## 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": "Any EVM address (0x...)"
      },
      "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,
  "type": "Safe multisig",
  "chain": "Base",
  "owners": [
   "0xa349...",
   "0xB8B8...",
   "0xa79c..."
  ],
  "threshold": 2,
  "nativeBalance": 30.41
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/contractlens-smart-contract-security-scanner-aa8c2f23/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)
