# Smart Contract Risk Analyzer

> Smart Contract Risk Analyzer is a paid API for AI agents from api.api-agent-ia.ch, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-23).

Analyzes an Ethereum smart contract address to identify risky functions such as selfdestruct

## Facts

- Endpoint: GET https://api.api-agent-ia.ch/analyse-contrat?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/smart-contract-risk-analyzer-a734ae22
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eUo3dTnMZYINBSQ6NoWo9

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 smart-contract-risk-analyzer-a734ae22
```

Example prompt: Can you analyze the smart contract at 0xAbC123... and tell me if it has any risky functions like selfdestruct that I should be worried about?

## When to prefer this

Use this endpoint when you need a quick, low-cost automated risk scan of a specific Ethereum/EVM smart contract address before interacting with it, approving tokens, or integrating it into a workflow. It is best suited for rapid pre-flight checks in agentic pipelines where a human or AI needs a simple risky-function signal without running a full formal audit.

## Known failure modes

- Invalid or malformed Ethereum address returns an error or empty result
- Address is a wallet (not a contract), indicated by est_contrat: false
- Network connectivity issues to the blockchain may result in timeout or 5xx error
- Unverified or proxy contracts may not expose all functions, leading to incomplete detection

## How this service works

Analyze a smart contract for risky functions

## Output

Returns a JSON object containing the queried contract address, a boolean indicating whether the address is a smart contract, and an array listing any detected risky functions (e.g. 'selfdestruct').

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "adresse"
     ],
     "properties": {
      "adresse": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "example": {
   "adresse": "0x...",
   "est_contrat": true,
   "fonctions_risquees": [
    "selfdestruct"
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/smart-contract-risk-analyzer-a734ae22/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.api-agent-ia.ch](https://www.zero.xyz/host/api.api-agent-ia.ch/llms.txt)
