{"uid":"cap_5zxhiJ5fhcUy7Nvavd4B0","slug":"financial-data-x402-erc-20-token-total-supply-1e0db6fe","name":"Financial Data x402 — ERC-20 Token Total Supply","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://x402financialdata.com/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_OYuCBBFqWww8IE87DOfyu","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 an ERC-20 token on Ethereum (or other supported chains) given its contract address, paid per-call via x402/USDC with no API key required.","exampleAgentPrompt":"What is the total on-chain supply of USDC right now? The contract address is 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum.","exampleUseCases":[{"title":"DeFi dashboard token supply check","prompt":"Pull the current total supply for the USDC contract 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum so I can display it in my analytics dashboard."},{"title":"Stablecoin depeg monitoring alert","prompt":"Fetch the raw total supply for the DAI contract 0x6B175474E89094C44Da98b954EedeAC495271d0F on Ethereum — I want to track whether it's growing or shrinking week over week."},{"title":"Token launch supply verification","prompt":"Verify the total supply of our newly deployed token at contract address 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 on Ethereum to confirm it matches our whitepaper."}],"resultDescription":"A JSON object containing: the blockchain chain identifier (e.g. 'eth'), the token_contract address queried, the raw_total_supply as an integer string in the token's smallest unit (e.g. wei for 18-decimal tokens), and a note reminding callers to divide by 10^decimals for a human-readable amount (decimals not included in the response).","failureModes":["Invalid or non-existent contract address returns an error or empty supply","Contract address on unsupported chain returns an error","Payment failure or insufficient USDC balance causes x402 payment rejection","Malformed contract address (wrong length/checksum) may cause a 400 or lookup failure","No decimals field returned — caller must independently know the token's decimals to normalize the value"],"whenToPreferThis":"Choose this endpoint when you need raw on-chain total supply for an ERC-20 token and want zero-friction, no-subscription access paid per-call in USDC via the x402 protocol. It is ideal for agents that make sporadic, ad-hoc queries where a monthly API subscription would be wasteful. It is not appropriate if you also need the token's decimal precision (you must fetch that separately), or if you need off-chain circulating supply figures that exclude locked/burned tokens.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T06:53:06.022Z","isFirstParty":false}