Skip to content
Fourohtwo

x402-agent-hub.x402-agent-hub.workers.dev/v1/chain/token-balance

ERC-20 token balance of any address on 7 EVM chains, returned raw and decimal-formatted with the token symbol, so agents never mis-scale USDC (6) vs 18-decimal tokens. You only pay for successful reads: invalid input, not-found and upstream errors cancel settlement.

BaseAnswering
GEThttps://x402-agent-hub.x402-agent-hub.workers.dev/v1/chain/token-balance

Uptime100% 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://x402-agent-hub.x402-agent-hub.workers.dev/v1/chain/token-balance?address=0x1721E9841257A34DbDBA407D4DBA3a727a02d072&chain=base&token=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913");
console.log(await res.json());

Example input

{
  "address": "0x1721E9841257A34DbDBA407D4DBA3a727a02d072",
  "chain": "base",
  "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}

More from x402 Agent HubProvider status