Skip to content
Fourohtwo

agent402.tools/api/wallet-positions

An EVM wallet's positions on up to 5 chains (base, ethereum, arbitrum, optimism, polygon), read from our own chain reads pinned to one block per chain: native coin and listed-token balances valued in USD from Uniswap v3 USDC pool state at that block (null with the reason when no pool is usable), Aave v3 collateral, debt, available borrows and health factor from the lending pool's own account data,

BasePolygonArbitrumMonadAvalancheSei+5Answering
POSThttps://agent402.tools/api/wallet-positions

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://agent402.tools/api/wallet-positions", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"address":"0xBA9424d650A4F5c80a0dA641254d1AcCE2A37057","networks":["base"]}),
});
console.log(await res.json());

Example input

{
  "address": "0xBA9424d650A4F5c80a0dA641254d1AcCE2A37057",
  "networks": [
    "base"
  ]
}