{"uid":"cap_0hD3IZGM_rZMVLn9ecNIW","slug":"brainiac-erc-20-total-supply-lookup-1f983b29","name":"BRAINIAC ERC-20 Total Supply Lookup","description":"Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.","url":"https://www.brainiac.software/api/v1/chain-data/token/erc20-total-supply?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"blockNumber":{"type":"integer","maximum":9007199254740991,"minimum":0},"tokenAddress":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"}}},"responseSchema":{"type":"json","example":{"source":{"url":"https://mainnet.base.org","status":"OK"},"chainId":8453,"blockNumber":"latest","retrievedAt":"2026-11-07T12:08:59.834Z","totalSupply":"0x000000000000000000000000000000000000000000000000000f2dbd176dc538","tokenAddress":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","totalSupplyDecimal":"4272414815798584"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ILHZ57pOHMT5Nyw5odnNL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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 of an ERC-20 token at a specified block number on-chain","exampleAgentPrompt":"What was the total supply of the USDC token (contract 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) at block 19000000?","exampleUseCases":[{"title":"Historical token supply snapshot","prompt":"What was the total supply of DAI (contract 0x6B175474E89094C44Da98b954EedeAC495271d0F) at block 18500000? I need this for a historical DeFi analysis."},{"title":"DeFi protocol inflation monitoring","prompt":"Can you check the current total supply of the WETH token at contract 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 at the latest block so I can track any inflation?"},{"title":"Token audit before investment","prompt":"Before I invest, can you pull the on-chain total supply for the token at contract 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 at block 19500000 so I know exactly how many tokens exist?"}],"resultDescription":"A JSON object containing the total supply of the specified ERC-20 token, expressed as a numeric value (typically in the token's smallest unit, e.g. wei for 18-decimal tokens), as recorded at the given block number on-chain.","failureModes":["Invalid or malformed token contract address (not matching ^0x[a-fA-F0-9]{40}$) returns a validation error","Block number out of valid range or not yet mined returns an error","Token address is not an ERC-20 contract (no totalSupply function) may return an error or empty result","Network or RPC connectivity issues causing timeouts","Payment failure via x402 results in HTTP 402 and no data returned"],"whenToPreferThis":"Use this endpoint when you need to look up the exact on-chain total supply of any ERC-20 token at a specific block height without setting up a full blockchain node or RPC subscription. It is ideal for point-in-time historical queries, DeFi analytics, token audits, and agent workflows that require verified on-chain supply data with pay-per-call economics and no account setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T00:35:58.021Z","isFirstParty":false,"canonicalSlug":"brainiac-erc-20-total-supply-lookup-1f983b29"}