# DeFi Shield Approval Scanner

> DeFi Shield Approval Scanner is a paid API for AI agents from defi-shield-hazel.vercel.app, paid per call via x402, $0.25/call, status unknown (last checked 2026-09-13).

Scans a wallet's ERC-20/token approval history to detect dangerous unlimited approvals and unverified spenders, and recommends which approvals to revoke

## Facts

- Endpoint: POST https://defi-shield-hazel.vercel.app/api/defi/approval-scanner
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-shield-hazel-vercel-app-1f729ff0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UQ8p6lDcympFxVzbY9DZk

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-1f729ff0 -d '<json body>'
```

Example prompt: Scan my wallet 0xAbc123...def for dangerous or unlimited token approvals — flag any unverified spenders and tell me which approvals I should revoke to secure my funds.

## When to prefer this

Choose this endpoint when an agent needs to audit a wallet's token approval exposure for security purposes — especially when the user wants to find unlimited ERC-20 approvals, identify unknown or unverified spender contracts, or get actionable revoke recommendations. Prefer over generic blockchain explorers when structured risk analysis and revoke guidance are needed.

## Known failure modes

- Invalid or malformed wallet address returns validation error
- Unsupported chain or network returns scope error
- Rate limiting or upstream RPC failure returns 503 or timeout
- No approvals found returns empty result set
- Unrecognized spender contract flagged as unverified by default

## Output

Returns a list of detected token approvals categorized by risk level, identifying unlimited allowances and unverified spender contracts, along with prioritized revoke recommendations for each risky approval.

## Example request

```json
{
 "chainId": 1,
 "wallet_address": "0x1234567890123456789012345678901234567890",
 "includeRevocationRecommendations": true
}
```

## 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 (default: base)"
      },
      "wallet_address": {
       "type": "string",
       "description": "Wallet address to scan approvals for (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-1f729ff0/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)
