# bal-check > Wallet balance API for Base: ETH, USDC and 190+ major Base ERC-20 tokens with USD values and a total, for any address. $0.003 per call ($0.002 lite: ETH + USDC) via x402 USDC, or starter pack: 40 calls for $0.02 (valid 7 days). No charge for failed calls. - Base URL: https://bal-check.restockalarm.workers.dev - Pay per call via x402 (HTTP 402), scheme exact: USDC on Base (eip155:8453) or Polygon PoS (eip155:137), payTo 0x7B97303d62517eA9E26D1E1b199Eac42a487F430 - Chains: balances on Base only; Polygon/Ethereum chain data PAUSED (chain=polygon|ethereum -> 503 before payment, never charged) - No account, no KYC. Card alternative: X-API-Key header (credit packs below) - No charge for failed calls: x402 payments are settled only after a successful (2xx) response; 4xx/5xx are never settled and API-key credits are refunded - OpenAPI: https://bal-check.restockalarm.workers.dev/openapi.json - Manifest: https://bal-check.restockalarm.workers.dev/.well-known/x402.json - Docs (HTML): https://bal-check.restockalarm.workers.dev/ - Pay per call: $0.003 (ETH + USDC + 190+ Base ERC-20s with USD values) or $0.002 lite (ETH + USDC) — or starter pack: 40 calls for $0.02 (valid 7 days): https://bal-check.restockalarm.workers.dev/v1/starter-pack ## Endpoints (GET) - https://bal-check.restockalarm.workers.dev/v1/balance?address=0x... — $0.003 (ETH + USDC + 190+ Base ERC-20s with USD values + total) - https://bal-check.restockalarm.workers.dev/v1/balance-lite?address=0x... — $0.002 (ETH + USDC only) - https://bal-check.restockalarm.workers.dev/v1/starter-pack — $0.02 (starter pack: 40 calls, valid 7 days) - https://bal-check.restockalarm.workers.dev/v1/preview?address=0x... — free (3 calls/day per IP: ETH + USDC preview, no payment) (not x402) - https://bal-check.restockalarm.workers.dev/openapi.json — free (not x402) - https://bal-check.restockalarm.workers.dev/.well-known/x402.json — free (not x402) ## How to pay (x402) 1. GET an endpoint without payment -> HTTP 402 with payment requirements (price, payTo, network, asset). 2. Sign a USDC authorization with an x402 client (e.g. @x402/fetch) and retry with the PAYMENT-SIGNATURE / X-PAYMENT header. 3. Response: JSON result. Example: curl -i "https://bal-check.restockalarm.workers.dev/v1/balance?address=0x7B97303d62517eA9E26D1E1b199Eac42a487F430" ## Pay by card instead (API key) Buy an API credit pack by card/PayPal (credits shared across all our APIs; 1 credit = $0.005; credits per call = x402 price / $0.005 rounded up, min 1, so a $0.02 call = 4 credits and any call up to $0.005 = 1 credit; see https://api-keys.restockalarm.workers.dev/): - 250 calls: https://space-command-kits-shop.fourthwall.com/products/api-credits-250-calls - 1000 calls: https://space-command-kits-shop.fourthwall.com/products/api-credits-1000-calls - 5000 calls: https://space-command-kits-shop.fourthwall.com/products/api-credits-5000-calls Claim your key at https://api-keys.restockalarm.workers.dev/claim and send header X-API-Key: sck_... Example: curl -H "X-API-Key: sck_YOUR_KEY" "https://bal-check.restockalarm.workers.dev/v1/balance?address=0x7B97303d62517eA9E26D1E1b199Eac42a487F430" ## Related - Catalog: https://product-katalog.restockalarm.workers.dev/llms.txt ## Buy a call (x402 v2, USDC on Base) — every paid route - GET https://bal-check.restockalarm.workers.dev/v1/balance?address=0x7B97303d62517eA9E26D1E1b199Eac42a487F430 — $0.003 USDC — ETH + USDC + 190+ Base ERC-20 balances with USD values Query: address (required) = wallet address, 0x + 40 hex chars - GET https://bal-check.restockalarm.workers.dev/v1/balance-lite?address=0x7B97303d62517eA9E26D1E1b199Eac42a487F430 — $0.002 USDC — ETH + USDC balance on Base Query: address (required) = wallet address, 0x + 40 hex chars - GET https://bal-check.restockalarm.workers.dev/v1/starter-pack — $0.02 USDC — 40 balance calls, valid 7 days How it works: 1) call the URL without payment -> HTTP 402 with the quote (header PAYMENT-REQUIRED, x402 v2: scheme exact, network eip155:8453, asset USDC, amount, payTo). 2) an x402 client signs a USDC transfer authorization (no gas for you) and retries with header PAYMENT-SIGNATURE. 3) you get HTTP 200 with JSON, plus a PAYMENT-RESPONSE receipt header. Bad or missing input answers HTTP 400 with an example BEFORE any payment, and any failed call (status >= 400) is never charged. Browser apps: CORS is open (Access-Control-Allow-Origin *; PAYMENT-REQUIRED and PAYMENT-RESPONSE are exposed). See the quote (free): curl -i "https://bal-check.restockalarm.workers.dev/v1/balance?address=0x7B97303d62517eA9E26D1E1b199Eac42a487F430" Pay and call (Node 20+): npm i @x402/fetch @x402/evm viem import { wrapFetchWithPayment, x402Client } from "@x402/fetch"; import { ExactEvmScheme } from "@x402/evm/exact/client"; import { privateKeyToAccount } from "viem/accounts"; const client = new x402Client(); client.register("eip155:*", new ExactEvmScheme(privateKeyToAccount(process.env.EVM_PRIVATE_KEY))); // wallet with USDC on Base const payFetch = wrapFetchWithPayment(fetch, client); const res = await payFetch("https://bal-check.restockalarm.workers.dev/v1/balance?address=0x7B97303d62517eA9E26D1E1b199Eac42a487F430"); // 402 -> signs USDC payment -> retries -> 200 console.log(res.status, await res.json()); Buyer quickstart: https://docs.x402.org/getting-started/quickstart-for-buyers No wallet? Pay by card with an API key: https://api-keys.restockalarm.workers.dev/