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

Scans a smart contract by chain ID and address using Slither static analysis, returning vulnerability findings, proxy/upgradeability status, and admin-gated function inventory

## Facts

- Endpoint: GET https://contractlens-api.appin60.com/monitor?utm_source=zero.xyz
- Price: $0.99/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-202f661f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lGXOFCShnvL5hG6G-eNpb

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-202f661f
```

Example prompt: Before I approve this token spend, can you run a security scan on contract 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum (chain ID 1) and tell me if it has any Slither vulnerabilities, proxy patterns, or admin functions like mint, pause, or blacklist?

## When to prefer this

Use ContractLens when you need a fast, automated static-analysis security verdict on a specific smart contract before interacting with it — especially for approving token spends, depositing into DeFi protocols, or evaluating a new token. It is ideal when the contract is Sourcify-verified on one of the six supported chains and you need Slither findings plus admin function enumeration in a single call. Prefer this over manual audits or generic block explorers when an AI agent needs a structured, machine-readable risk assessment at transaction time.

## Known failure modes

- Contract not Sourcify-verified — rejected without charge
- Unsupported chain ID — only Ethereum, Base, Arbitrum, Optimism, Polygon, BNB are supported
- Invalid contract address format — returns error
- Payment not completed — x402 payment of $0.99 USDC required before results are returned
- Contract has no source code — treated as unverified and rejected
- Network timeout reaching the target chain RPC

## 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 vulnerability findings from Slither static analysis (e.g. reentrancy, unchecked calls, arbitrary sends), proxy and upgradeability status, and a list of privileged/admin-gated functions (mint, pause, blacklist, upgrade). Unverified contracts are rejected without charge. Returns ok:true on success with a monitor ID and first check status.

## 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": [
      "url",
      "email"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Full https URL of your x402 endpoint"
      },
      "email": {
       "type": "string",
       "description": "Where to send alerts"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "monitor": {
   "id": "k3j9x2a1",
   "until": "2026-11-12T08:00:00Z"
  },
  "firstCheck": {
   "status": "payable"
  }
 }
}
```

## More

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