{"uid":"cap_2ZXUGkc0aPx661tK6zX1s","slug":"agentforge-defi-lending-health-check-0a48baf3","name":"AgentForge DeFi Lending Health Check","description":"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.","url":"https://agentforge-taupe.vercel.app/v1/lending/health?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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"}}}}}}},"responseSchema":{"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}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qONNdxQ7Oj1XK1JayR6YA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns real-time liquidation risk and health factors for a wallet's open lending positions across major DeFi protocols and chains","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Pre-trade liquidation safety check","prompt":"Before I add more leverage on Aave, check the health factor for 0xAbc123...def456 on Ethereum — I need to know how close I am to liquidation and what percentage my collateral can drop."},{"title":"Cross-chain portfolio risk sweep","prompt":"Scan wallet 0x9f8e...3c21 across all chains and tell me which lending positions are at risk of liquidation and what their current health factors are."},{"title":"Automated liquidation alert for a watched address","prompt":"Check the lending health of 0x4d7a...b891 on Arbitrum — flag it if the health factor is under 1.5 or if the collateral can drop less than 20% before liquidation hits."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-16T18:32:43.758Z","isFirstParty":false,"canonicalSlug":"agentforge-defi-lending-health-check-0a48baf3"}