Skip to content
Fourohtwo

x402.agentindex.world/base/live-balance

Native ETH balance plus up to 20 ERC20 token balances for one wallet on Base mainnet, in a single Multicall3 round trip regardless of token count.

BaseAnswering
POSThttps://x402.agentindex.world/base/live-balance

Uptime100% of 2 checks 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://x402.agentindex.world/base/live-balance", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"tokens":["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","0x4200000000000000000000000000000000000006"],"wallet":"0xb3F32bdfe8D07825BC0D7387295aB1D7559BA69d"}),
});
console.log(await res.json());

Example input

{
  "tokens": [
    "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "0x4200000000000000000000000000000000000006"
  ],
  "wallet": "0xb3F32bdfe8D07825BC0D7387295aB1D7559BA69d"
}