Skip to content
Fourohtwo

x402.santyvv.com/api/chain/token-balance

Balance of an ERC-20 token for an address, already divided by the token's own decimals and labelled with its symbol, plus the raw atomic amount. Accepts a contract address or a known alias (usdc, usdt, weth) where the alias exists for that chain.

BaseAnswering
GEThttps://x402.santyvv.com/api/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.santyvv.com/api/chain/token-balance?chain=Red+EVM%3A+base%2C+ethereum%2C+arbitrum%2C+optimism%2C+polygon+%28por+defecto%3A+base%29+Ejemplo%3A+base&token=Contrato+ERC-20+%280x+%2B+40+hex%29+%28obligatorio%29+Ejemplo%3A+0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913&account=Titular+de+la+cuenta+%28obligatorio%29+Ejemplo%3A+0x69F1EBCCD06a0dD7355922c56A3D51E17dC01388");
console.log(await res.json());

Example input

{
  "chain": "Red EVM: base, ethereum, arbitrum, optimism, polygon (por defecto: base) Ejemplo: base",
  "token": "Contrato ERC-20 (0x + 40 hex) (obligatorio) Ejemplo: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "account": "Titular de la cuenta (obligatorio) Ejemplo: 0x69F1EBCCD06a0dD7355922c56A3D51E17dC01388"
}

More from santyvv-dataProvider status