Skip to content
Fourohtwo

ERC-20 balanceOf(token, owner) on base|polygon|arbitrum|optimism

pyfile-agent.taile3ff35.ts.net/data/chain/erc20-balance

ERC-20 balanceOf(token, owner) on base|polygon|arbitrum|optimism; raw base-units always, human value when decimals given. ?chain=base&token=0x..&address=0x..&decimals=6

BasePolygonArbitrumnano:mainnetDown
GEThttps://pyfile-agent.taile3ff35.ts.net/data/chain/erc20-balance

Uptime0.0% 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://pyfile-agent.taile3ff35.ts.net/data/chain/erc20-balance?address=0x0000000000000000000000000000000000000000&chain=base&token=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913");
console.log(await res.json());

Example input

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

More from Pyfile x402 APIProvider status