{"uid":"cap_e6U4h2GY-464Q_G71h4Rl","slug":"erc-20-total-supply-on-base-c888f0ce","name":"ERC-20 Total Supply on Base","description":"ERC-20 total supply on Base, raw + formatted with decimals and symbol. Use when an agent needs a token's circulating-supply base for market-cap or dilution math.","url":"https://x402-data-api.sigrunner.workers.dev/chain/total-supply?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"token":{"type":"string","description":"0x-prefixed ERC-20 contract address on Base"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["token","symbol","decimals","total_supply_raw","total_supply","chain"],"properties":{"chain":{"type":"string"},"token":{"type":"string"},"symbol":{"type":"string"},"decimals":{"type":"integer"},"total_supply":{"type":"integer"},"total_supply_raw":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"chain":"base","token":"0x833589fCd6eDb6E08f4c7C32D4f71b54bdA02913","symbol":"USDC","decimals":6,"total_supply":3500000000,"total_supply_raw":"3500000000000000"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DrjzSiQvSp5yLVP-gHQxT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the total circulating supply of any ERC-20 token on Base, in both raw integer and decimal-adjusted formatted form, along with symbol and decimals.","exampleAgentPrompt":"What's the total supply of USDC on Base — give me both the raw number and the formatted amount with decimals — the contract address is 0x833589fCd6eDb6E08f4c7C32D4f71b54bdA02913.","exampleUseCases":[{"title":"Market cap calculation for Base token","prompt":"I need to calculate the market cap of USDT on Base — can you grab the total supply for contract 0x... so I can multiply it by the current price?"},{"title":"Token dilution analysis for DeFi research","prompt":"Pull the total supply of the Base AERO token at 0x940181a94a35a4569e4529a3cdfb74e38fd98631 — raw and formatted — so I can figure out how diluted the circulating supply is relative to max supply."},{"title":"Tokenomics dashboard data fetch","prompt":"For my tokenomics dashboard, get me the total supply, symbol, and decimals for the ERC-20 at 0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb on Base."}],"resultDescription":"A JSON object containing the Base chain identifier, the queried token contract address, the token symbol (e.g. 'USDC'), the number of decimals, the formatted total supply as an integer, and the raw total supply as a string (unscaled by decimals). Example: {chain: 'base', token: '0x833...', symbol: 'USDC', decimals: 6, total_supply: 3500000000, total_supply_raw: '3500000000000000'}.","failureModes":["Invalid or non-ERC-20 contract address returns an error or empty response","Non-Base chain addresses will not return valid data (Base-only endpoint)","Missing 'token' query parameter may return a default or error response","Contract address with no total supply function (non-standard ERC-20) may fail","Rate limiting or payment failure ($0.003 USDC per call) blocks the request"],"whenToPreferThis":"Choose this endpoint when you need the total supply of an ERC-20 token specifically on the Base chain, particularly for market cap computation, dilution math, or tokenomics analysis. It returns both raw and decimal-adjusted supply in one call, saving you the need to separately fetch decimals and divide. Prefer it over generic blockchain RPC calls when you want a clean JSON response without manually decoding ABI-encoded output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-25T00:46:33.116Z","isFirstParty":false,"canonicalSlug":"erc-20-total-supply-on-base-c888f0ce"}