agent-data-tools.revmesh2074.workers.dev/token/balance
Token balance on Base for any wallet and ERC-20 (USDC, USDT, WETH or a contract address): raw amount, decimals, symbol and human-readable balance read live from the token contract. Use to check a Base wallet's token holdings before a swap or transfer. Invalid contracts return an uncharged 422.
GET
https://agent-data-tools.revmesh2074.workers.dev/token/balanceUptime100% of 4 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://agent-data-tools.revmesh2074.workers.dev/token/balance?address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&token=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913");
console.log(await res.json());Example input
{
"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}