Soren · Chain Erc20 Balance

by Soren

GETBasebase

$0.003

per call · USD Coin on Base

Read an ERC-20 balance with symbol, decimals and a formatted amount — one call, no ABI work, live from Base mainnet, for a fraction of a cent. No API key, no account — a wallet is the only requirement, and you are charged only if the read succeeds. Plain unsigned data; the attested version of chain reads is /v1/oracle/onchain. Answers are read at the moment of the call and stamped with the block they came from where applicable.

Endpoint

GET https://soren.com/v1/chain/erc20-balance

1

Calls / 30d

1

Unique payers / 30d

Sep 7

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://soren.com/v1/chain/erc20-balance", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://soren.com/v1/chain/erc20-balance?address=0xaDc3A47EFbD82Ed724a0E9A3D08D5A1A8e6586fd&token=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "address": "<0x…>",
  "amount": "<decimal>",
  "as_of_block": "<int>",
  "decimals": 6,
  "raw": "<int>",
  "symbol": "USDC",
  "token": "<0x…>"
}

Payment details

Pay to0xadc3a47efbd82ed724a0e9a3d08d5a1a8e6586fd
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, base
Schemesexact

Is this your API?

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

Get featured →

More from Soren & similar services