onchain-health.mick8511.workers.dev/health-factor
DeFi lending position health for an EVM address across Ethereum, Base, Arbitrum, Optimism and Polygon: Aave v3 and Spark collateral, debt, available borrow, liquidation threshold and health factor with a risk label, plus Compound v3 borrow, supply and liquidatable flag. Live on-chain reads via Multicall3. Free sample: https://onchain-health.mick8511.workers.dev/sample
POST
https://onchain-health.mick8511.workers.dev/health-factorUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://onchain-health.mick8511.workers.dev/health-factor", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"address":"0x959f779c1ddc3ca3a7716ddaef2dc6e9480437da","chains":"ethereum,base"}),
});
console.log(await res.json());Example input
{
"address": "0x959f779c1ddc3ca3a7716ddaef2dc6e9480437da",
"chains": "ethereum,base"
}