Skip to content
Fourohtwo

A wallet's Aave V4 and Morpho stock-token loans on Base

afterbook.app/api/v1/x402/loan-health

A wallet's Aave V4 and Morpho stock-token loans on Base: health at the lending oracle and at Aero's onchain price (which keeps trading while the cash market is shut), how far the collateral could fall before liquidation, whether it is under your threshold, and for an Aave loan links that open Afterbook's Aave panel with the repay or the added collateral worked out, for the person to sign. Read-onl

BaseAnswering
GEThttps://afterbook.app/api/v1/x402/loan-health

Uptime100% 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

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://afterbook.app/api/v1/x402/loan-health?wallet=0x9b3F205E43dc9FcC1cc2Fe6d9dCD0357769A6Bae");
console.log(await res.json());

Example input

{
  "wallet": "0x9b3F205E43dc9FcC1cc2Fe6d9dCD0357769A6Bae"
}

More from AfterbookProvider status