# Chain Check API – Smart Contract Risk Scan

> Chain Check API – Smart Contract Risk Scan is a paid API for AI agents from chaincheck-api.netlify.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-23).

Scans a smart contract on a specified blockchain and returns a risk assessment including flags, proxy info, capabilities, and a centralisation score.

## Facts

- Endpoint: GET https://chaincheck-api.netlify.app/v1/contract-scan?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chain-check-api-smart-contract-risk-scan-fe4464c2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rOKBcZAcR836Mm-a2vYZz

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 chain-check-api-smart-contract-risk-scan-fe4464c2
```

Example prompt: Can you do a quick risk scan on the smart contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum — I want to know if it's a proxy, what capabilities it has like minting or blacklisting, and what its centralisation score is?

## When to prefer this

Use this endpoint when you need a fast, pay-per-call smart contract risk assessment without signing up for an API key. It is ideal for AI agents that need to vet contracts before interacting with DeFi protocols, assess token safety, or detect proxy patterns and dangerous capabilities like minting or blacklisting. Prefer it over manual block explorer lookups or heavyweight audit tools when you need a structured, machine-readable risk summary at low cost ($0.02/call) across multiple EVM chains.

## Known failure modes

- Invalid or non-existent contract address returns empty or error response
- Unsupported chain value returns validation error
- Address is an EOA wallet rather than a contract — is_contract returns false with limited data
- Payment failure via x402/USDC on Base blocks the request entirely
- Network timeout or rate limiting from on-chain RPC providers

## How this service works

No-signup crypto data API for AI agents and developers. Multi-chain wallet reports ($0.01) and smart-contract risk quick-scans ($0.02), paid per call with x402 in USDC on Base.

## Output

Returns a JSON object with: a list of human-readable risk flags (e.g. 'Upgradeable proxy (EIP-1967)'), proxy implementation address if applicable, a boolean indicating whether the address is a contract, a capabilities map (e.g. mint, blacklist), and a centralisation score from 0 to 100.

## 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": [
      "chain",
      "address"
     ],
     "properties": {
      "chain": {
       "enum": [
        "eth",
        "base",
        "arbitrum",
        "optimism",
        "polygon",
        "bsc",
        "avalanche"
       ],
       "type": "string"
      },
      "address": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "flags": [
   "Upgradeable proxy (EIP-1967)..."
  ],
  "proxy": {
   "implementation": "0x..."
  },
  "is_contract": true,
  "capabilities": {
   "mint": true,
   "blacklist": true
  },
  "centralisation_score_0_100": 58
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chain-check-api-smart-contract-risk-scan-fe4464c2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chaincheck-api.netlify.app](https://www.zero.xyz/host/chaincheck-api.netlify.app/llms.txt)
