{"uid":"cap_B2EqkDLOjs9mjtX1iY_dE","slug":"allthebot-erc-20-token-info-base-645ceb1d","name":"AllTheBot ERC-20 Token Info (Base)","description":"ERC-20 token info on Base: name, symbol, decimals and total supply of any token contract, read live on-chain. Check a token before you trade or accept it.","url":"https://api.zkrobotics.fr/x402/base/token?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":{"token":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"name":"USD Coin","token":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","symbol":"USDC","network":"base","decimals":6,"total_supply":"4380511974.486329","total_supply_raw":"4380511974486329"}},"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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2V1oySR3ywv4HhhTi6ybf","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the name, symbol, decimals, and total supply of any ERC-20 token contract deployed on the Base network, read live on-chain.","exampleAgentPrompt":"Can you look up the on-chain info for the Base token at address 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 — I need its name, symbol, decimals, and total supply before I accept it as payment.","exampleUseCases":[{"title":"Verify token before DeFi trade","prompt":"Before I swap into this token, can you check the on-chain metadata for the Base contract at 0x4200000000000000000000000000000000000006 — I want to confirm the name, symbol, and how many decimals it uses?"},{"title":"Detect fake or spoofed token","prompt":"Someone sent me a token on Base at address 0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA claiming it's USDC — can you pull its on-chain name, symbol, and total supply to verify if it's legit?"},{"title":"Enrich token list with metadata","prompt":"I have a list of Base ERC-20 contract addresses and I need to fill in the token name, symbol, and decimal places for each one starting with 0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb — can you fetch that from the blockchain?"}],"resultDescription":"A JSON object containing the token contract address, its human-readable name, ticker symbol, number of decimals, the network ('base'), the formatted total supply as a decimal string, and the raw total supply as an integer string — all read live from the Base blockchain.","failureModes":["Invalid or non-ERC-20 contract address returns an error (address must match ^0x[0-9a-fA-F]{40}$)","Address is a wallet (EOA) rather than a token contract — no ERC-20 interface available","Token contract exists but does not implement standard ERC-20 metadata (name/symbol/decimals may be missing)","Network congestion or RPC issues may cause delayed or failed on-chain reads","Malformed address format (wrong length, missing 0x prefix) rejected before the call"],"whenToPreferThis":"Use this endpoint when you need live, authoritative on-chain ERC-20 metadata specifically on the Base network — not a cached or third-party price feed. It is ideal for due-diligence checks before accepting tokens, verifying token identity against a contract address, or populating token metadata in a wallet or DeFi application. Prefer it over price APIs when you need decimals or total supply rather than price, and over Ethereum equivalents when the token is deployed on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T12:43:33.885Z","isFirstParty":false,"canonicalSlug":"allthebot-erc-20-token-info-base-645ceb1d"}