api.botx402.io/base-address-balance
Returns the native ETH balance and ERC-20 token balances of one Base wallet address, read live from Base mainnet at the latest block: USDC, WETH and the rest of the top 200 Base tokens by market cap, plus up to 50 token contract addresses named in the request. Each row carries the token symbol, name, decimals, raw amount and human-readable amount. Suited to checking a wallet's current holdings bef
POST
https://api.botx402.io/base-address-balanceUptimeNot checked yet
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://api.botx402.io/base-address-balance", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"address":"0x28c6c06298d514db089934071355e5743bf21d60","chain":"base","pagination":{"page":1,"per_page":10}}),
});
console.log(await res.json());Example input
{
"address": "0x28c6c06298d514db089934071355e5743bf21d60",
"chain": "base",
"pagination": {
"page": 1,
"per_page": 10
}
}