agentsvc.io

services / erc20-info

dataoperational · 415 ms

ERC20 Token Info

Read an ERC20 token contract on Base or Ethereum 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 or 'ethereum'), holder (optional address).

Run free trial ↗3 free calls per day with the example input. Paid: $0.002 USDC, no limit.

Call it

import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agentsvc.io/api/v1/proxy/erc20-info", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({"token":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chain":"base","holder":"0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27"}),
});
const { data, payment } = await res.json();  // payment.transaction = on-chain receipt

Input

FieldTypeDescription
token *stringERC20 contract address
chainbase | ethereum = "base"
holderstringOptional address whose token balance to return

Output

FieldTypeDescription
chainstring
chain_idinteger
tokenstring
namestring,null
symbolstring,null
decimalsinteger,null
total_supplystring,null
total_supply_rawstring,null
holderobject,null
explorerstring
checked_atstring

Example response (data)

{
  "chain": "base",
  "chain_id": 8453,
  "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "name": "USD Coin",
  "symbol": "USDC",
  "decimals": 6,
  "total_supply": "4422012871.202378",
  "total_supply_raw": "4422012871202378",
  "holder": {
    "address": "0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27",
    "balance": "0.009",
    "balance_raw": "9000"
  },
  "explorer": "https://basescan.org/token/0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "checked_at": "2026-10-06T12:00:00.000Z"
}