ERC-20 token info + USD price

Name, symbol, decimals, supply and USD price for up to 10 tokens on 5 EVM chains.

ERC-20 token lookup on Ethereum, Base, Arbitrum, Optimism or Polygon: name, symbol, decimals, total supply (raw + human), live USD price with confidence (DefiLlama) and FDV, for up to 10 token addresses in one call. Use it before showing, pricing or converting a token amount.

$0.0025 per call in USDC on Base via x402, or pay by card with prepaid credits (2 credits) · 1 free call per caller · no signup · Listed on PayAPI Market (this route is not PayAPI-verified yet; 7 other routes are, each by one settled test payment)

GET https://freetier-agent-api.pages.dev/api/token-info

When to use it

Use token-info before displaying, converting or pricing an ERC-20 amount: decimals, symbol, supply and USD price for up to 10 tokens in one call.

Parameters

NameTypeDescription
address requiredstringERC-20 contract address, or comma list of up to 10
chainstring (base | ethereum | arbitrum | optimism | polygon)default base
pricestring (true | false)false skips the USD price

Example output (real response, trimmed)

{
 "chain": "base",
 "count": 1,
 "tokens": [
  {
   "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
   "chain": "base",
   "is_contract": true,
   "is_erc20": true,
   "name": "USD Coin",
   "symbol": "USDC",
   "decimals": 6,
   "total_supply_raw": "4290862904934007",
   "total_supply": "4290862904.934007",
   "price_usd": 0.9996,
   "price_confidence": 0.99,
   "price_time": "2026-10-25T19:57:01.000Z",
   "fdv_usd": 4289131687
  }
 ]
}

Try it

Free call (no wallet needed)

curl -s "https://freetier-agent-api.pages.dev/api/token-info?address=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913&chain=base"

Pay by card (no wallet): prepaid credits

Buy a credit pack on Gumroad (1,000 credits $3), then send your license key. The X-Credits-Remaining response header shows your balance; failed calls are not charged.

curl -s "https://freetier-agent-api.pages.dev/api/token-info?address=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913&chain=base" \
  -H 'X-License-Key: YOUR-LICENSE-KEY'

JavaScript / TypeScript (@x402/fetch)

// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.EVM_PRIVATE_KEY); // wallet with USDC on Base
const fetchWithPayment = wrapFetchWithPaymentFromConfig(fetch, {
  schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(account) }],
});
const res = await fetchWithPayment("https://freetier-agent-api.pages.dev/api/token-info?address=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913&chain=base");
console.log(await res.json());

Python (x402 + httpx)

# pip install "x402[httpx,evm]" eth-account
import asyncio, os
from eth_account import Account
from x402 import x402Client
from x402.http.clients import x402HttpxClient
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

async def main():
    client = x402Client()
    register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
    async with x402HttpxClient(client) as http:
        r = await http.get("https://freetier-agent-api.pages.dev/api/token-info?address=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913&chain=base")
        print(r.json())

asyncio.run(main())

A bare request without parameters returns the HTTP 402 payment challenge (x402 v2 in the PAYMENT-REQUIRED header, v1 in the body). Invalid input gets a 400 before any payment.

Billing policy

Failed calls are never charged. Failed calls are never charged: the payment is verified first, the request runs, and the payment is settled only if it succeeded. Errors (4xx/5xx) are not settled, and invalid input is rejected before any payment or free call.

Uptime and latency

Independent monitoring of this endpoint: 402index service page (health, 30-day uptime, p50 latency).

Also available as


Agent Extraction API by FreeTier Kits · Terms · llms.txt · /.well-known/x402 · MCP: https://freetier-agent-api.pages.dev/mcp · Contact: tec@mail.grokbot.com
This site and its texts were written with AI assistance and reviewed for accuracy; example outputs are real responses from the API.