{"uid":"cap_P-tBgCGElqC4PLRQv1n_4","slug":"token-total-supply-8b0ddcd5","name":"Token Total Supply","description":"Total supply, name, symbol and decimals of an ERC-20 or ERC-721 contract, read on-chain. Use for market-cap math, supply checks and token due diligence.","url":"https://bess-x402.onrender.com/v1/evm/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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["token"],"properties":{"chain":{"type":"string","description":"ethereum, base, arbitrum, optimism or polygon"},"token":{"type":"string","description":"Token address or USDC/USDT/DAI"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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_YC_O_1gCzlJQ_W73XB0RT","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 supply, name, symbol, and decimals of an ERC-20 or ERC-721 token contract by reading on-chain data.","exampleAgentPrompt":"What's the total supply, symbol, and decimals for the USDC contract on Ethereum? I need the on-chain data for market cap calculations.","exampleUseCases":[{"title":"Market cap math for DeFi token","prompt":"Fetch the total supply and decimals for the contract 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 on Ethereum so I can calculate its market cap."},{"title":"Token due diligence before investment","prompt":"I'm evaluating a new token at address 0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9 on Arbitrum — can you pull its name, symbol, total supply, and decimals from the blockchain?"},{"title":"Verify NFT contract metadata","prompt":"Look up the name, symbol, and total supply for the ERC-721 contract 0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D on Ethereum."}],"resultDescription":"Returns the token's total supply (as a big integer or formatted number), human-readable name, ticker symbol, and decimal precision as read directly from the smart contract on the specified EVM chain.","failureModes":["Invalid or non-existent contract address returns an error or empty result","Unsupported chain name causes a validation error","Token address that is not an ERC-20 or ERC-721 contract may return an error or zero values","Network congestion or RPC issues may cause timeouts","Payment of 0.002 USDC not provided results in HTTP 402 rejection"],"whenToPreferThis":"Use this endpoint when you need authoritative, on-chain token metadata (supply, name, symbol, decimals) for ERC-20 or ERC-721 contracts on Ethereum, Base, Arbitrum, Optimism, or Polygon — especially for market cap calculations, supply verification, or token due diligence where accuracy from the chain itself is required rather than a cached off-chain source.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T00:32:57.980Z","isFirstParty":false,"canonicalSlug":"token-total-supply-8b0ddcd5"}