# Webacy Smart Contract Risk Score API

> Webacy Smart Contract Risk Score API is a paid API for AI agents from api.webacy.com, paid per call via x402, $0.5/call, status unknown (last checked 2026-10-31).

Performs risk analysis on a smart contract address, including verified-source status, static analysis, asset-type resolution, and optional deployer risk flagging.

## Facts

- Endpoint: GET https://api.webacy.com/contracts/:contractAddress?utm_source=zero.xyz
- Price: $0.5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/webacy-smart-contract-risk-score-api-b31a4046
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ujkOYO8226RejZ-Ffz4sj

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 webacy-smart-contract-risk-score-api-b31a4046
```

Example prompt: Can you run a Webacy risk check on this Ethereum contract 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on the eth chain and also check if the deployer looks risky?

## When to prefer this

Use this endpoint when you need on-chain smart contract risk intelligence before interacting with, approving, or investing in a contract. It is the right choice when you need verified-source checks and static analysis combined in one call, and supports an optional deployer risk flag. Prefer this over generic block explorer lookups when you want a structured, scored risk assessment rather than raw contract metadata.

## Known failure modes

- Contract address not found on the specified chain — returns 404 or empty result
- Chain identifier not recognized or unsupported — returns validation error
- Unverified contract with fromBytecode=false may return incomplete analysis
- Deployer risk analysis unavailable if deployer address cannot be resolved
- Payment not attached or insufficient — returns 402 Payment Required
- Rate limiting or API key errors — returns 429 or 401

## How this service works

Risk analysis for a smart contract: verified-source status, static analysis, asset-type resolution, and (optionally) deployer risk.

## Output

Returns a structured risk report for the smart contract including: whether the source code is verified, static analysis findings (e.g. reentrancy, ownership issues), the resolved asset type (ERC-20, NFT, etc.), an overall risk score, and optionally a flag indicating whether the deployer address poses risk.

## 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"
    },
    "pathParams": {
     "type": "object",
     "properties": {
      "contractAddress": {
       "type": "string",
       "description": "Contract address to analyze"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "chain"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "description": "Blockchain network, e.g. eth, bsc, pol, arb, opt, base"
      },
      "fromBytecode": {
       "type": "boolean",
       "description": "Continue analysis from bytecode if source is unverified"
      },
      "deployer_risk": {
       "type": "boolean",
       "description": "Analyze the deployer address and flag it if risky"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/webacy-smart-contract-risk-score-api-b31a4046/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.webacy.com](https://www.zero.xyz/host/api.webacy.com/llms.txt)
