T

TraceFast · Tokens Balance

by TraceFast

GETBase

$0.02

per call · USD Coin on Base

TraceFast live Ethereum data: balanceOf(address) for one token at the end of a block, read from contract storage. A token outside the covered set is refused (422), never a fake zero. Path address and token: 0x-prefixed, 40 hex. Query block: integer, state at the end of this block, absent = current. Docs: https://docs.tracefast.xyz/api/address-token-balance.md

Endpoint

GET https://mpp.tracefast.xyz/api/v1/chains/1/entities/:address/tokens/:token/balance

1

Calls / 30d

1

Unique payers / 30d

Sep 4

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://mpp.tracefast.xyz/api/v1/chains/1/entities/:address/tokens/:token/balance", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://mpp.tracefast.xyz/api/v1/chains/1/entities/:address/tokens/:token/balance" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "data": {
    "address": "0xf977814e90da44bfa03b6295a0616a897441acec",
    "balance": "17000000000000198",
    "balanceBasis": "contract_storage",
    "decimals": 6,
    "symbol": "USDT",
    "token": "0xdac17f958d2ee523a2206206994597c13d831ec7",
    "window": {
      "asOfBlock": 25901228,
      "kind": "current"
    }
  }
}

Payment details

Pay to0x2a65491e93ad0d484b74405401a38e2e0e5edd7e
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Onchain Data and the homepage with a featured placement.

Get featured →

More from TraceFast & similar services