# DeFi Shield Yield Analysis

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

Decomposes DeFi yield (APY) into its components, scores sustainability, and detects wash trading to assess whether returns are genuine

## Facts

- Endpoint: POST https://defi-shield-hazel.vercel.app/api/defi/yield-analysis
- Price: $0.75/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-shield-hazel-vercel-app-7aa04f6f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_P6KKV-cbapyudgvIPOMdg

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

Example prompt: Can you break down the yield on the USDC-ETH pool on Uniswap v3 — I want to know what's driving the APY, whether it's sustainable, and if there's any wash trading inflating those numbers?

## When to prefer this

Use this endpoint when an AI agent needs to evaluate the quality and authenticity of DeFi yields before recommending or investing in a pool. Prefer this over generic APY aggregators when sustainability scoring and wash trading detection are required, not just raw APY numbers.

## Known failure modes

- Unknown or unsupported protocol/pool address returns 404 or empty result
- Insufficient on-chain data for yield decomposition returns partial result or low confidence score
- Malformed pool address causes 400 validation error
- Wash trading signal unavailable if volume history is too short
- Service timeout on complex multi-source yield decomposition

## Output

Returns a structured breakdown of APY components (e.g. trading fees, token emissions, incentives), a sustainability score indicating how durable the yield is, and a wash trading detection result flagging whether pool volume or returns appear artificially inflated.

## Example request

```json
{
 "input": {
  "body": {
   "chain": "base",
   "pool_address": "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640"
  },
  "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 (default: base)"
      },
      "pool_address": {
       "type": "string",
       "description": "Liquidity pool address"
      }
     }
    },
    "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-7aa04f6f/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)
