# Aave v3 Lending Position Risk Checker on Base

> Aave v3 Lending Position Risk Checker on Base is a paid API for AI agents from x402-data-api.bodhinindustries.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Fetches and computes a wallet's Aave v3 lending position on Base, including collateral, debt, health factor, liquidation risk, and borrow capacity — all from raw on-chain data.

## Facts

- Endpoint: GET https://x402-data-api.bodhinindustries.workers.dev/lending
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aave-v3-lending-position-risk-checker-on-base-1d8c19cb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_q8Z_zSdfLZGSSubHjIZoR

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 aave-v3-lending-position-risk-checker-on-base-1d8c19cb
```

Example prompt: Can you check the Aave v3 lending position for wallet 0xAbC123...def456 on Base and tell me if it's at risk of liquidation — I want to see the health factor, total collateral, total debt, and how much more it can borrow?

## When to prefer this

Choose this endpoint when you need trustless, self-computed Aave v3 risk data on Base without relying on any third-party APIs or price feeds. Ideal for liquidation monitoring, DeFi risk audits, or any agent that must verify a wallet's lending health directly from chain data. Prefer this over Aave's own dashboard or third-party aggregators when auditability and no-third-party guarantees matter.

## Known failure modes

- Wallet address not a valid Base address — likely 400 or empty/null position response
- Wallet has no Aave v3 position — hasPosition returns false, health factor null
- RPC connectivity issues to Base chain — may return error or stale block
- Malformed wallet parameter — validation error
- Upstream Base node latency causing slow or failed response

## How this service works

Self-computed Base onchain toolkit for AI agents: ERC-20 safety scan, manipulation-resistant TWAP price oracle, gas/fee oracle, calldata decoder, token/address/contract intel, wallet approval-risk audit, and batch token triage — all computed live from raw Base chain, no third-party data.

## Output

Returns a structured object with the wallet's Aave v3 position on Base including: health factor (1e18-scaled), total collateral in USD, total debt in USD, LTV percentage, liquidation threshold, available borrow capacity, whether the wallet is liquidatable, a list of risk flags, the block height at computation time, and a confirmation that no third-party data was used.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "wallet"
 ],
 "properties": {
  "wallet": {
   "type": "string",
   "description": "Base wallet to check for an Aave v3 position."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "block": {
   "type": "integer",
   "description": "Base block height"
  },
  "ltvPct": {
   "type": "number",
   "description": "max LTV %"
  },
  "wallet": {
   "type": "string",
   "description": "wallet checked"
  },
  "debtUsd": {
   "type": "string",
   "description": "total debt USD"
  },
  "hasDebt": {
   "type": "boolean",
   "description": "has borrows"
  },
  "protocol": {
   "type": "string",
   "description": "aave-v3"
  },
  "riskFlags": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "computedAt": {
   "type": "string",
   "description": "ISO-8601 timestamp"
  },
  "hasPosition": {
   "type": "boolean",
   "description": "has any collateral/debt"
  },
  "healthFactor": {
   "type": "string",
   "description": "1e18-scaled decimal (or null if no debt)"
  },
  "liquidatable": {
   "type": "boolean",
   "description": "debt>0 and healthFactor<1.0"
  },
  "collateralUsd": {
   "type": "string",
   "description": "total collateral USD"
  },
  "thirdPartyDataUsed": {
   "type": "boolean",
   "description": "always false"
  },
  "availableBorrowsUsd": {
   "type": "string",
   "description": "remaining borrow capacity USD"
  },
  "currentLiquidationThresholdPct": {
   "type": "number",
   "description": "liquidation threshold %"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aave-v3-lending-position-risk-checker-on-base-1d8c19cb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-data-api.bodhinindustries.workers.dev](https://www.zero.xyz/host/x402-data-api.bodhinindustries.workers.dev/llms.txt)
