Read ERC-20 metadata on Base
Read ERC-20 metadata on Base. POST {"token":"0x..."} and receive the name, symbol, decimals and total supply, with the supply given both raw and decimal-adjusted. Reports a clear error when the address is not a token contract.
1000 (raw units)
price
1
calls / 30d
1
unique payers
2026-08-30
updated
Provider
x402-echo-service.onrender.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x9Cc774A8eD49d89cBA1A288F4a050B8F7FbA77EE",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "1000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"category": "Infra",
"coverImage": "https://x402-echo-service.onrender.com/icon.png",
"info": {
"input": {
"body": {
"token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"decimals": 6,
"name": "USD Coin",
"symbol": "USDC",
"token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"totalSupply": "4000000000.0",
"totalSupplyRaw": "4000000000000000"
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"token": {
"type": "string"
}
},
"required": [
"token"
],
"type": "object"
},
"bodyType": {
"enum": [
"json"
]
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http"
}
},
"required": [
"type",
"bodyType",
"body",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"decimals": {
"type": "integer"
},
"name": {
"type": "string"
},
"symbol": {
"type": "string"
},
"token": {
"type": "string"
},
"totalSupply": {
"type": "string"
},
"totalSupplyRaw": {
"type": "string"
}
},
"required": [
"token",
"name",
"symbol",
"decimals",
"totalSupply"
],
"type": "object"
},
"type": {
"const": "json"
}
},
"required": [
"type",
"example"
],
"type": "object"
}
},
"required": [
"input",
"output"
],
"type": "object"
},
"serviceName": "Token Metadata",
"summary": "Name, symbol, decimals and total supply for an ERC-20 on Base.",
"tags": [
"token",
"erc20",
"metadata",
"base",
"supply"
]
}
}Use it
curl
curl "https://x402-echo-service.onrender.com/chain/token" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://x402-echo-service.onrender.com/chain/token");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://x402-echo-service.onrender.com/chain/token")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/8181.json, and this resource appears in /discovery/resources and /discovery/search.