Wallet balance and ERC-20 token balance on Base
api.zkrobotics.fr/x402/base/wallet
Wallet balance and ERC-20 token balance on Base: live ETH, USDC and up to 5 ERC-20 balances of any address, read from Base mainnet. Pre-flight funding check before a payment or a swap. No API key.
GET
https://api.zkrobotics.fr/x402/base/walletUptime100% 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://api.zkrobotics.fr/x402/base/wallet?address=0x60fd97850059dF9600C4E26f09aC58EF51561963&tokens=%3Ctokens%3E");
console.log(await res.json());Example input
{
"address": "0x60fd97850059dF9600C4E26f09aC58EF51561963",
"tokens": []
}