Skip to content
Fourohtwo

Read an ERC20 token contract on Base, Ethereum or IOTA EVM mainnet

agentsvc.io/api/v1/proxy/erc20-info

Read an ERC20 token contract on Base, Ethereum or IOTA EVM mainnet: name, symbol, decimals, total supply, and optionally the balance of one holder address. Verifies that the address is a contract. Params: token (contract address, required), chain ('base' default, 'ethereum' or 'iota-evm'), holder (optional address).

BaseAnswering
POSThttps://agentsvc.io/api/v1/proxy/erc20-info

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://agentsvc.io/api/v1/proxy/erc20-info", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"chain":"base","token":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","holder":"0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27"}),
});
console.log(await res.json());

Example input

{
  "chain": "base",
  "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "holder": "0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27"
}