# AgentForge DeFi Lending Health Check

> AgentForge DeFi Lending Health Check is a paid API for AI agents from agentforge-taupe.vercel.app, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-16).

Returns real-time liquidation risk and health factors for a wallet's open lending positions across major DeFi protocols and chains

## Facts

- Endpoint: GET https://agentforge-taupe.vercel.app/v1/lending/health?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentforge-defi-lending-health-check-0a48baf3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2ZXUGkc0aPx661tK6zX1s

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 agentforge-defi-lending-health-check-0a48baf3
```

Example prompt: Check if wallet 0x7192...abcd is at risk of liquidation across all chains — I want to see the health factor and how far the collateral can drop before I get liquidated.

## When to prefer this

Use this endpoint when an agent needs to assess real-time liquidation risk for a DeFi lending position before executing a trade, adding collateral, or alerting a user. It is ideal over raw on-chain queries because it aggregates positions across multiple protocols and chains in one call, pre-calculates health factors, and provides the collateral-drop-to-liquidation percentage — avoiding the need to integrate multiple protocol ABIs. Prefer it over general portfolio tools when the specific concern is debt/collateral ratio and liquidation proximity.

## Known failure modes

- Invalid or malformed wallet address returns a 400 error
- Address with no open lending positions returns an empty positions array
- Unsupported chain value returns a validation error
- Missing payment header triggers a 402 response with pricing and payment instructions
- Network or RPC timeout may cause delayed or partial results

## How this service works

Aave health factor and liquidation risk: how close a wallet is to liquidation on Aave v3, across Ethereum, Base, Arbitrum, Optimism, Polygon, BNB Chain, Avalanche, Linea, and Sonic in one call: collateral, debt, health factor, status (safe/watch/danger/critical/liquidatable), and how far collateral can fall before liquidation. Category: data.

## Output

Returns an array of open lending positions for the wallet, each with chain, protocol name, health factor, collateral in USD, debt in USD, position status (safe/at-risk/etc.), and the percentage collateral can drop before liquidation triggers. Also surfaces a 'worst' object highlighting the most dangerous position.

## 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"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "chain": {
       "enum": [
        "all",
        "ethereum",
        "base",
        "arbitrum",
        "optimism",
        "polygon",
        "bsc",
        "avalanche",
        "linea",
        "sonic"
       ],
       "type": "string",
       "default": "all"
      },
      "address": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{40}$"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "address",
      "positions",
      "worst"
     ],
     "properties": {
      "worst": {
       "type": "object"
      },
      "address": {
       "type": "string"
      },
      "positions": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "chain": {
          "type": "string"
         },
         "status": {
          "type": "string"
         },
         "debtUsd": {
          "type": "number"
         },
         "healthFactor": {
          "type": "number"
         },
         "collateralUsd": {
          "type": "number"
         }
        }
       }
      },
      "relatedServices": {
       "type": "array"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "address": "0x7192…",
  "positions": [
   {
    "chain": "ethereum",
    "status": "safe",
    "debtUsd": 502.93,
    "protocol": "aave-v3",
    "healthFactor": 3.021,
    "collateralUsd": 1803.93,
    "collateralDropToLiquidationPct": 66.9
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentforge-defi-lending-health-check-0a48baf3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentforge-taupe.vercel.app](https://www.zero.xyz/host/agentforge-taupe.vercel.app/llms.txt)
