{"uid":"cap_feMvKI1tguNWPL0HdyPsV","slug":"agent402-contract-inspect-5b879d5c","name":"Agent402 Contract Inspect","description":"Deep contract inspection on any Blockscout-hosted chain (dozens: Ethereum, Base, Polygon, Optimism, Arbitrum, Celo, Gnosis, …): verified source, full ABI, proxy type + implementations, compiler + license metadata - bought per call from Blockscout's Pro API over x402, no API key anywhere in the chain. Richer than contract-source (Sourcify): adds ABI + proxy resolution and far wider chain coverage.","url":"https://agent402.tools/api/contract-inspect","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"chain":{"type":"string","description":"chain name (base, ethereum, polygon, …) or numeric chain id (default base)"},"address":{"type":"string","description":"contract address (0x…)"}}},"responseSchema":{"type":"json","example":{"name":"FiatTokenProxy","chain":"8453","address":"0x8335…2913","compiler":"v0.8.x","abiEntries":12,"isVerified":true,"untrustedContent":true}},"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_aI1mRpcRcW4q7gZ71Kh9Q","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":"Inspects and returns metadata about a smart contract on a specified blockchain, including ABI entries, compiler version, and verification status.","exampleAgentPrompt":"Can you inspect the smart contract at 0x8335...2913 on Base and tell me whether it's verified, what the contract name is, and how many ABI entries it has?","exampleUseCases":[{"title":"Verify a DeFi protocol contract","prompt":"I just found this contract address 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum — can you check if it's verified, what it's called, and what compiler version was used?"},{"title":"Audit unfamiliar token contract on Base","prompt":"Someone sent me tokens from contract 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base — can you inspect it and tell me if it's a verified contract and how many ABI entries it exposes?"},{"title":"Due diligence on a new NFT contract","prompt":"Before I interact with this Polygon contract at 0x2953399124F0cBB46d2CbACD364879F3588...can you look up whether it's verified on-chain and show me the compiler version and ABI entry count?"}],"resultDescription":"Returns a JSON object containing the contract's name, chain ID, address, compiler version, number of ABI entries, verification status, and a flag indicating whether the content is untrusted.","failureModes":["Unverified or unknown contract address returns isVerified: false with minimal metadata","Invalid or malformed 0x address returns an error response","Unsupported chain name or chain ID results in an error","Contract exists but source code is not publicly verified on the block explorer","Network timeouts or upstream block explorer unavailability"],"whenToPreferThis":"Use this endpoint when you need quick, structured metadata about a deployed EVM smart contract — especially verification status, ABI size, and compiler version — without needing to set up a full node or block explorer integration. Ideal for due diligence workflows, agent-driven contract auditing, or enriching on-chain address data. Prefer this over manual block explorer lookups when operating programmatically with pay-per-call pricing and no API key setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:05.681Z","isFirstParty":false}