# ContractLens Smart Contract Security Scan

> ContractLens Smart Contract Security Scan 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 smart contract and returns reentrancy/vulnerability findings, proxy/upgradeability status, and privileged admin functions

## Facts

- Endpoint: GET https://contractlens-api.appin60.com/payability?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-scan-b04ffdb1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zliLkSiR_O_3W4UQA27B0

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-scan-b04ffdb1
```

Example prompt: Before I deposit into this protocol, can you run a full security scan on the contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum (chain ID 1) — I want to know about any reentrancy issues, unchecked calls, proxy setup, and who controls the admin functions like mint or pause?

## When to prefer this

Choose ContractLens when you need pre-interaction security due-diligence on an EVM smart contract that is verified on Sourcify, especially before approving token spends, depositing funds, or trading a new token. It is uniquely suited for identifying Slither-detected vulnerabilities and owner/admin privilege mapping in one call. Prefer this over generic block-explorer lookups when you need structured security findings rather than raw bytecode or ABI inspection.

## Known failure modes

- Contract not verified on Sourcify — rejected with an error and no charge applied
- Invalid or unsupported chain ID — returns an error indicating unsupported network
- Invalid contract address format — returns a validation error
- Contract call execution reverted — returns reason with 'contract call failed: execution reverted'
- Network/RPC timeout during static analysis — may return a timeout error

## 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 Slither static-analysis findings categorized by vulnerability type (reentrancy, unchecked calls, arbitrary sends, etc.), the contract's proxy/upgradeability status, and an enumerated list of owner/role-gated privileged functions (mint, pause, blacklist, upgrade). Unverified contracts are rejected without charge.

## 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"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Full https URL of your x402 endpoint, with any query params it needs"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://example.com/api",
  "reason": "invalid_payload: contract call failed: unable to call contract: execution reverted",
  "status": "payable",
  "verdict": "Payable: rejected only for balance.",
  "firstStatus": 402,
  "x402Version": 2
 }
}
```

## More

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