{"uid":"cap_yasgAJHoghs4aWJgqzrAo","slug":"erc20-token-total-supply-lookup-10655c94","name":"ERC20 Token Total Supply Lookup","description":"Use when you need the current total supply of an ERC20 token on Base, Ethereum, Arbitrum, Optimism or Polygon, fetched live via totalSupply eth_call. Returns raw integer supply and a decimal-adjusted amount.","url":"https://biosfera.46-62-215-147.sslip.io/o/erc20-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","required":["chain","token"],"properties":{"chain":{"enum":["base","ethereum","arbitrum","optimism","polygon"],"type":"string"},"token":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"ERC20 contract address"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0015","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qy3YuOoTqSbVabY2kU0US","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0015","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches the current total supply of any ERC20 token on Base, Ethereum, Arbitrum, Optimism, or Polygon via a live eth_call to the contract's totalSupply function, returning both raw integer and decimal-adjusted amounts.","exampleAgentPrompt":"What's the current total supply of the USDC token contract 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum — give me both the raw number and the human-readable decimal amount?","exampleUseCases":[{"title":"Monitor token inflation on Base","prompt":"Check the current total supply of the token at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base and tell me the decimal-adjusted amount so I can track how many tokens are in circulation."},{"title":"Compare token supply across chains","prompt":"What is the total supply of the USDC contract 0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8 on Arbitrum right now? Give me the raw integer and the human-readable supply."},{"title":"DeFi protocol token supply audit","prompt":"Pull the live total supply for the token at contract 0x4200000000000000000000000000000000000042 on Optimism — I need both the raw and decimal values to audit the protocol's tokenomics."}],"resultDescription":"Returns the raw integer total supply (as reported by the contract's totalSupply() function) and a decimal-adjusted floating-point amount accounting for the token's decimals, along with the queried contract address and chain.","failureModes":["Invalid or non-ERC20 contract address returns an error or zero supply","Unsupported chain value outside the allowed enum returns a validation error","Contract address that is not a token contract may return unexpected results","RPC node downtime may cause temporary fetch failures","Malformed address (not matching 0x + 40 hex chars) returns a schema validation error"],"whenToPreferThis":"Choose this endpoint when you need a live, real-time totalSupply reading directly from the ERC20 contract on Base, Ethereum, Arbitrum, Optimism, or Polygon. Prefer it over indexers or off-chain data sources when accuracy and freshness matter, such as for DeFi analytics, tokenomics auditing, or cross-chain supply comparisons.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-03T03:27:53.798Z","isFirstParty":false,"canonicalSlug":"erc20-token-total-supply-lookup-10655c94"}