Glyphcall
Chain data3 free calls over HTTPFrom $0.01 per call · failed calls are never charged

The same method on other networks: /eth/token-balance and its related tools.

Sonic ERC-20 balance

$0.01 per call · failed calls are never charged · no account needed: a card key or USDC

ERC-20 token balance of a wallet on Sonic (USDC or WETH by ticker, any token by address, via balanceOf): raw amount, decimals, symbol and the human-readable amount, live from the token contract. Use to check stablecoin or token holdings before a transfer or trade; for the native coin use sonic_balance. The token is a ticker such as USDC or WETH or its 0x address; no contract or a non-ERC-20 contract returns 422, uncharged.

Run it free (3 free calls) Buy credits by card (from $1) Example result (JSON)

Try it with your own inputs

Token: a ticker such as USDC or WETH, or the 0x ERC-20 contract address
0x wallet address

Uses one of your 3 free calls. Nothing is charged, and a call that fails is not counted.

Inputs

NameTypeDescription
token (required)stringToken: a ticker such as USDC or WETH, or the 0x ERC-20 contract address
address (required)string0x wallet address

Request

Over HTTP, with a card key from /credits:

curl -H "Authorization: Bearer adt_…" "https://glyphtools.com/sonic/token-balance?token=0x29219dd400f2Bf60E5a23d13Be72B486D4038894&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"

Node.js

const r = await fetch("https://glyphtools.com/sonic/token-balance?token=0x29219dd400f2Bf60E5a23d13Be72B486D4038894&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", {
  headers: { Authorization: "Bearer adt_…" },
});
const data = await r.json(); // 402 until the key is in the header

Python

import requests

r = requests.get("https://glyphtools.com/sonic/token-balance?token=0x29219dd400f2Bf60E5a23d13Be72B486D4038894&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", headers={"Authorization": "Bearer adt_…"}, timeout=60)
data = r.json()

Or one of your 3 free calls, no key — the same request with &trial=1 on the end:

curl "https://glyphtools.com/sonic/token-balance?token=0x29219dd400f2Bf60E5a23d13Be72B486D4038894&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&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",
  "symbol": "USDC",
  "decimals": 6,
  "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
  "raw": "2500000",
  "balance": "2.5"
}

From an AI agent (MCP)

Add the MCP server to Claude, Cursor or any MCP client. This tool is sonic_token_balance, and the first 10 successful calls are free:

https://glyphtools.com/mcp

Related tools