{"uid":"cap_q8Z_zSdfLZGSSubHjIZoR","slug":"aave-v3-lending-position-risk-checker-on-base-1d8c19cb","name":"Aave v3 Lending Position Risk Checker on Base","description":"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.","url":"https://x402-data-api.bodhinindustries.workers.dev/lending","method":"GET","headers":{},"bodySchema":{"type":"object","required":["wallet"],"properties":{"wallet":{"type":"string","description":"Base wallet to check for an Aave v3 position."}}},"responseSchema":{"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 %"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GEAQV-tA0p6DKRYCRnWmv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Monitor DeFi wallet liquidation risk","prompt":"I'm worried about one of my positions on Aave v3 Base. Can you pull up my lending health right now and tell me how close I am to liquidation? I need the health factor, collateral amount, and how much buffer I have before things get critical."},{"title":"Audit counterparty lending safety","prompt":"Before I send funds to this address on Base, can you check their Aave v3 position for me? I want to know if they're at risk of being liquidated soon — basically, are they solvent enough to trust with my capital?"},{"title":"Batch risk check for portfolio","prompt":"I've got several wallets in my DeFi portfolio on Base. Can you run through each one and give me a risk summary — health factor, available borrow capacity, and any liquidation warnings so I can prioritize which positions need rebalancing first?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:49:44.715Z","isFirstParty":false}