{"uid":"cap_xR21-yzUnrvJq_Dr_SlG6","slug":"erc-20-token-total-supply-lookup-x402-983f66e7","name":"ERC-20 Token Total Supply Lookup (x402)","description":"Pay-per-call stock, macro, on-chain, and crypto data over the x402 protocol. USDC on Base or Solana, no API keys, no subscriptions.","url":"https://x402-stock-indicators.vercel.app/token-supply/%7Bcontract_address%7D","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"required":{"type":"string"},"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"note":"raw_total_supply is in the token's smallest unit -- this endpoint doesn't return the token's decimals, so divide by 10**decimals yourself for a human-readable amount (most ERC-20s use 18, but not all).","chain":"eth","token_contract":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","raw_total_supply":"49571331689759662"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_AKzFeTJ4zC-pUhAwx1obL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the raw total supply of any ERC-20 token on Ethereum given its contract address, paid per-call via USDC over the x402 protocol.","exampleAgentPrompt":"What's the total supply of the token at Ethereum contract address 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48? Pay the $0.005 USDC fee via x402 and give me the raw supply figure.","exampleUseCases":[{"title":"DeFi dashboard token supply check","prompt":"Pull the raw total supply for the USDC token at contract 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum — I need it in the smallest unit so I can do my own decimal conversion."},{"title":"Automated supply monitoring bot","prompt":"Check the on-chain total supply of the token at 0x6B175474E89094C44Da98b954EedeAC495271d0F right now — I'm building an alert if supply changes by more than 1% week over week."},{"title":"Token research due diligence","prompt":"I'm researching this DeFi project — can you get me the current total supply from the Ethereum contract at 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 so I can cross-check it against their whitepaper?"}],"resultDescription":"A JSON object containing: the blockchain chain identifier (e.g. 'eth'), the token's contract address, the raw total supply expressed in the token's smallest unit (e.g. wei for 18-decimal tokens), and a note reminding the caller to divide by 10**decimals for a human-readable amount since decimals are not included in this response.","failureModes":["Invalid or malformed contract address returns an error or empty result","Contract address exists but is not an ERC-20 token may return unexpected data","Payment failure via x402 (insufficient USDC balance or unsupported wallet) blocks the request","Rate limiting or Vercel cold-start latency may cause timeouts","Token deployed on non-Ethereum chains will not be found (endpoint appears Ethereum-specific)","Decimals not returned — callers who forget to divide by 10**decimals will misread the supply"],"whenToPreferThis":"Choose this endpoint when you need on-chain ERC-20 total supply data with no API key or subscription setup, and you can pay $0.005 USDC per call via x402 (Base or Solana). Ideal for agents that need occasional or sporadic supply lookups without committing to a data provider contract. Prefer alternatives like Alchemy, Moralis, or The Graph if you need decimals in the same response, multi-chain support beyond Ethereum, or very high call volumes where per-call pricing becomes costly.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-11T12:30:01.916Z","isFirstParty":false}