Skip to content
Fourohtwo

Base wallet balance

ontarioprotocol.com/api/x402/base/balances

Base wallet balance: ETH, USDC and about 25 widely held Base tokens for any address, plus up to 20 ERC-20 token contracts you name, each with symbol, decimals, raw and formatted amount and the block number read, live from Base mainnet RPC. Required: address. $0.002 USDC on Base. Failed read, no charge. No account, no API key. Base mainnet only; no prices or USD values; tokens outside the list and

BaseAnswering
GEThttps://ontarioprotocol.com/api/x402/base/balances

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://ontarioprotocol.com/api/x402/base/balances?address=0xa2d72aBF2C5e939fdDCA4156B74dE482e03CA3ec");
console.log(await res.json());

Example input

{
  "address": "0xa2d72aBF2C5e939fdDCA4156B74dE482e03CA3ec"
}