# DeFi Shield Contract Risk Analyzer

> DeFi Shield Contract Risk Analyzer is a paid API for AI agents from defi-shield-hazel.vercel.app, paid per call via x402, $0.5/call, status unknown (last checked 2026-09-14).

Analyzes a smart contract's risk profile including risk scoring, admin privilege detection, and deployer history analysis

## Facts

- Endpoint: POST https://defi-shield-hazel.vercel.app/api/defi/contract-risk
- Price: $0.5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-shield-hazel-vercel-app-c2f862b0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6sWi7WZl5MhXj3j_IltE_

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 defi-shield-hazel-vercel-app-c2f862b0 -d '<json body>'
```

Example prompt: Can you run a full risk analysis on the smart contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum — I want to see the risk score, any admin or owner privilege flags, and a breakdown of the deployer's history before I interact with it.

## When to prefer this

Use this endpoint when you need a comprehensive smart contract risk assessment combining risk scoring, admin/owner privilege detection, and deployer analysis in a single call — particularly before a DeFi interaction, investment, or integration. Prefer this over generic blockchain explorers when you need structured risk scoring and centralization detection rather than raw contract data.

## Known failure modes

- Invalid or unrecognized contract address returns error
- Contract not deployed on specified chain returns not-found error
- Unverified contract bytecode limits analysis depth
- Network timeout when fetching on-chain data
- Unsupported chain identifier returns validation error

## Output

Returns a structured risk score for the contract, flags indicating admin or privileged roles detected in the contract, analysis of the deployer wallet's history and reputation, and a list of identified risk factors or vulnerabilities.

## Example request

```json
{
 "input": {
  "body": {
   "chain": "base",
   "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body",
    "method"
   ],
   "properties": {
    "body": {
     "properties": {
      "chain": {
       "type": "string",
       "description": "Chain to analyze (default: base)"
      },
      "address": {
       "type": "string",
       "description": "Smart contract address (0x + 40 hex chars)"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "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/defi-shield-hazel-vercel-app-c2f862b0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defi-shield-hazel.vercel.app](https://www.zero.xyz/host/defi-shield-hazel.vercel.app/llms.txt)
