zkSync Era ERC-20 balance
agent-data-tools.revmesh2074.workers.dev/zksync/token-balance
zkSync Era ERC-20 balance. ERC-20 token balance of a wallet on zkSync Era (USDC, USDT, WETH or any token, via balanceOf): raw amount, decimals, symbol and the human-readable amount, live from the token contract. Use to check stablecoin or token holdings before a transfer or trade; for the native coin use zksync_balance. Both inputs are 0x addresses (40 hex characters); no contract returns 404 and
GET
https://agent-data-tools.revmesh2074.workers.dev/zksync/token-balanceUptime100% of 1 check 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
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://agent-data-tools.revmesh2074.workers.dev/zksync/token-balance?address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&token=0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4");
console.log(await res.json());Example input
{
"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"token": "0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4"
}