{"uid":"cap__lgm62yuL5dlPs8Uzil45","slug":"chainread-contract-inspector-cc07c723","name":"ChainRead Contract Inspector","description":"Cheap EVM read utilities for AI agents on Base and Ethereum mainnet: gas and fees, blocks, balances, ERC-20 metadata, contract inspection, transaction status, ENS/Basename resolution, bulk balances. No API key: pay USDC on Base per call via x402.","url":"https://chainread.imac2014ville.workers.dev/contract?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"],"type":"string"},"queryParams":{"type":"object","required":["address"],"properties":{"chain":{"enum":["base","ethereum"],"type":"string","description":"Chain to read (default base)"},"address":{"type":"string","description":"Address to inspect (0x…)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"chain":"base","traits":["erc20-like"],"address":"0x4200000000000000000000000000000000000006","isProxy":false,"codeSize":2200,"isContract":true,"selectorsOfInterest":[{"selector":"0xa9059cbb","signature":"transfer(address,uint256)"}]}},"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_csnKkjRKdsD0CI4lZDcuP","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":"Inspects an EVM smart contract address on Base or Ethereum mainnet to determine if it's a contract, its code size, whether it's a proxy, detected traits (e.g. ERC-20), and key function selectors.","exampleAgentPrompt":"Can you inspect the contract at 0x4200000000000000000000000000000000000006 on Base and tell me if it's a proxy, what traits it has, and what key functions it exposes?","exampleUseCases":[{"title":"Token contract verification before interaction","prompt":"Before I interact with this token, can you check if 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum is actually an ERC-20 contract and whether it's a proxy?"},{"title":"DeFi protocol contract audit","prompt":"I'm auditing a DeFi protocol — can you inspect 0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9 on Ethereum and tell me its code size, any detected traits, and the function selectors it has?"},{"title":"Base deployment confirmation","prompt":"I just deployed a contract to Base at 0x1234abcd... — can you confirm it's actually a contract, check if it looks like an ERC-20, and tell me if it's set up as a proxy?"}],"resultDescription":"Returns a JSON object with: ok (boolean), chain (base or ethereum), address (the inspected address), isContract (boolean), isProxy (boolean), codeSize (integer bytes), traits (array of detected standards like 'erc20-like'), and selectorsOfInterest (array of {selector, signature} objects for known function signatures).","failureModes":["Address not found or not a contract — isContract returns false","Invalid address format — likely 400 or error response","Unsupported chain value — only 'base' and 'ethereum' are valid","Payment not processed — x402 payment required before data is returned","Network timeout or RPC error for the underlying chain","Empty code at address (EOA) — codeSize 0, isContract false"],"whenToPreferThis":"Choose this endpoint when you need lightweight, low-cost contract inspection on Base or Ethereum mainnet without setting up an API key or running your own RPC node. It is ideal for agents that need to quickly verify whether an address is a contract, detect ERC-20 compatibility, check for proxy patterns, or enumerate key function selectors — all for $0.002 USDC per call via x402 micropayment. Prefer this over Etherscan or Alchemy when you want a simple pay-per-call model with no account registration.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:30:04.999Z","isFirstParty":false,"canonicalSlug":"chainread-contract-inspector-cc07c723"}