{"uid":"cap_F1MUji2r1ab3RjYzD7840","slug":"erc-20-token-metadata-total-supply-lookup-0c6032c2","name":"ERC-20 Token Metadata & Total Supply Lookup","description":"","url":"https://agent-commerce-factory-jm.austriaeast.cloudapp.azure.com/v1/onchain/token-meta","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["contract"],"properties":{"chain":{"type":"string","default":"ethereum","description":"EVM chain (ethereum, base, arbitrum, optimism, polygon, bsc)."},"contract":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"ERC-20 token contract address."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["machine","route","token"],"properties":{"chain":{"type":"string"},"route":{"type":"string"},"token":{"type":"object","properties":{"name":{"type":["string","null"]},"chain":{"type":["string","null"]},"symbol":{"type":["string","null"]},"contract":{"type":["string","null"]},"decimals":{"type":["integer","null"]},"totalSupply":{"type":["string","null"]},"totalSupplyRaw":{"type":["string","null"]}}},"machine":{"type":"string"},"contract":{"type":"string"},"economics":{"type":"object","properties":{"sellPriceUsd":{"type":"number"},"upstreamCostUsdActual":{"type":["number","null"]}}}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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__GGFSSeBCfvMmKD3o6YzD","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 name, symbol, decimals, and total supply for any ERC-20 token contract, read live on-chain from a specified EVM network.","exampleAgentPrompt":"Can you pull the on-chain metadata for the USDC contract 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum — I need the token name, symbol, decimals, and total supply?","exampleUseCases":[{"title":"DeFi token due-diligence check","prompt":"Before I invest, can you look up the on-chain metadata for contract 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 on Ethereum — specifically the name, symbol, decimals, and total supply?"},{"title":"Supply tracking for a new Base token","prompt":"I need to track the total supply of this new token on Base — the contract address is 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913. Can you fetch its name, symbol, decimals, and current total supply from on-chain?"},{"title":"Token explorer data enrichment","prompt":"For my token explorer dashboard, can you fetch the ERC-20 metadata for contract 0x6B175474E89094C44Da98b954EedeAC495271d0F on Ethereum, including the raw and decimal total supply?"}],"resultDescription":"Returns a JSON object containing the token's name, symbol, decimals, raw total supply (as a big integer string), and decimal-adjusted total supply, along with the chain and contract address echoed back for confirmation.","failureModes":["Invalid or non-ERC-20 contract address returns null fields or an error","Unsupported chain name causes a validation error","Contract address that exists but is not an ERC-20 token may return partial or null metadata","Network RPC issues may cause transient failures or timeouts","Malformed contract address pattern (not matching 0x + 40 hex chars) rejected by schema validation"],"whenToPreferThis":"Use this endpoint when you need authoritative, live on-chain ERC-20 token metadata (name, symbol, decimals, supply) directly from the blockchain rather than from a cached or aggregated data source. Prefer it over CoinGecko-style endpoints when you need the raw contract-level truth, or when the token is too new or niche to appear in market data APIs. Also ideal when you need the exact totalSupplyRaw for smart contract interactions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:35:42.206Z","isFirstParty":false}