Sonic ERC-20 token info
Look up the name, symbol, decimals and total supply of an ERC-20 token contract on Sonic, live from the contract. Use to identify an unknown token address or to format raw amounts; for a holder's balance use sonic_token_balance. Input is a ticker (USDC, WETH…) or the token's 0x contract address; an address that is not an ERC-20 contract returns 422, uncharged.
Inputs
| Name | Type | Description |
|---|---|---|
token (required) | string | Token: a ticker such as USDC or WETH, or the 0x ERC-20 contract address |
Request
Over HTTP, with a card key from /credits:
curl -H "Authorization: Bearer adt_…" "https://agent-data-tools.revmesh2074.workers.dev/sonic/token-info?token=0x29219dd400f2Bf60E5a23d13Be72B486D4038894"
Or one of your 25 free calls, no key:
curl "https://agent-data-tools.revmesh2074.workers.dev/sonic/token-info?token=0x29219dd400f2Bf60E5a23d13Be72B486D4038894&trial=1"
Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.
Example result
{
"chain": "Sonic",
"chainId": 146,
"token": "0x29219dd400f2Bf60E5a23d13Be72B486D4038894",
"name": "USD Coin",
"symbol": "USDC",
"decimals": 6,
"totalSupply": "1000000000.0",
"totalSupplyRaw": "1000000000000000"
}
From an AI agent (MCP)
Add the MCP server to Claude, Cursor or any MCP client. This tool is sonic_token_info, and the first 25 successful calls are free:
https://agent-data-tools.revmesh2074.workers.dev/mcp