# Pay-per-call APIs (x402, USDC on Base) For an x402-capable agent that needs a Base mainnet lookup: get a block number, ERC-20 supply, ERC-20 balance or address nonce through a paid JSON endpoint, without managing a Base RPC connection yourself. These endpoints wrap public on-chain data; the data is also available through public RPC. Start with the ERC-20 supply quickstart for client setup, a dated sample and limits: https://heb-utils-x402.hebutils-api.workers.dev/quickstart Example: https://heb-utils-x402.hebutils-api.workers.dev/base-erc20-supply?token=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 (0.001 USDC, Base mainnet). Never put a private key in a URL. Available utility catalogue (16 routes): - GET https://heb-utils-x402.hebutils-api.workers.dev/indicators?closes=44.34,44.09,...&highs=&lows=&volumes= ($0.01): Technical indicator numbers (SMA, EMA, RSI, MACD, Bollinger, ATR, OBV, Stochastic) computed from price series you supply, up to 250 values. Numbers only, no signals, not advice - GET https://heb-utils-x402.hebutils-api.workers.dev/return-tail-stats?returns=-0.012,0.004,...&confidence=0.95 ($0.05): Empirical lower-tail statistics (quantile and mean at or below it) of returns you supply. Numbers only, not advice - GET https://heb-utils-x402.hebutils-api.workers.dev/base-token-verdict?address=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 ($0.02): Plain-language heuristic screen of a Base token's admin-control functions (mint, pause, blacklist, proxy, owner), with a shareable summary. Not an audit, not advice. - GET https://heb-utils-x402.hebutils-api.workers.dev/base-token-brief?token=&holder= ($0.01): One call for a Base token: symbol, name, decimals, total supply, optional holder balance, admin-control risk screen (proxy, owner, mint, pause, blacklist, fee setters) with headline and signal count, and the current block number. Pass the token contract address and optionally a holder address. Replaces 4-5 separate lookups with one payment. Read-only live on-chain data, heuristic screen, not an audit, not advice. - GET https://heb-utils-x402.hebutils-api.workers.dev/base-erc20-balance?token=&holder= ($0.001): Look up a holder's ERC-20 token balance on Base mainnet. Pass the token contract and holder addresses. Returns JSON from public on-chain data; token metadata and formatted values depend on the contract's responses. Public RPC reads can fail or be incomplete. - GET https://heb-utils-x402.hebutils-api.workers.dev/base-erc20-supply?token= ($0.001): Look up an ERC-20 token's total supply on Base mainnet. Pass the token contract address. Returns JSON from public on-chain data; token metadata and formatted values depend on the contract's responses. Public RPC reads can fail or be incomplete. - GET https://heb-utils-x402.hebutils-api.workers.dev/base-block-number ($0.001): Look up the latest Base mainnet block returned by the upstream RPC, including its number, timestamp (Unix and ISO) and gas used. No parameters. An upstream block response does not independently establish chain liveness or data freshness. - GET https://heb-utils-x402.hebutils-api.workers.dev/base-nonce?address= ($0.001): Get the transaction count (nonce) and pending nonce of any address on Base mainnet. Pass the address. Read-only live on-chain data, useful before sending a transaction. - GET https://heb-utils-x402.hebutils-api.workers.dev/base-token-check?address= ($0.02): Base token control-risk flags (heuristic, not an audit) - GET https://heb-utils-x402.hebutils-api.workers.dev/base-address-summary?address= ($0.005): Contract or wallet, ETH and USDC balance, tx count - GET https://heb-utils-x402.hebutils-api.workers.dev/hebrew-date?date=2026-10-10 ($0.005): Gregorian to Hebrew date, English and Hebrew - GET https://heb-utils-x402.hebutils-api.workers.dev/shabbat?lat=31.77&lon=35.21 ($0.01): Candle-lighting and havdalah times - GET https://heb-utils-x402.hebutils-api.workers.dev/hebrew-normalize?text= ($0.005): Strip niqqud, normalise Hebrew text, rough transliteration - GET https://heb-utils-x402.hebutils-api.workers.dev/fee-drag?amount=10000&years=20&annual_return_pct=7&annual_fee_pct=1 ($0.005): Fee and compounding arithmetic (not advice) - GET https://heb-utils-x402.hebutils-api.workers.dev/fx-real-return?from=USD&to=EUR ($0.01): ECB reference FX rate and inflation-adjusted growth (information only) - GET https://heb-utils-x402.hebutils-api.workers.dev/il-capital-gains?cost=100000&sale=150000 ($0.02): Israel capital gains tax estimate for listed securities (estimate only) The 16 listed utility routes return 402 with payment terms when unpaid. New report orders are paused. Existing /order-status?order_id= links remain supported with Authorization: Bearer ; original query-token status links also continue to work. Keep tokens private. OpenAPI: https://heb-utils-x402.hebutils-api.workers.dev/openapi.json General information and arithmetic only. Not investment, tax or legal advice, and not a recommendation to buy, sell or hold anything. Results are estimates from the inputs you provide and public data, may be wrong or out of date, and are not a substitute for a licensed adviser.