{"uid":"cap_72efbbWvmJdMzqXwknGD0","slug":"ethereum-contract-detection-via-eth-is-contract-check-34cee04d","name":"Ethereum Contract Detection via ETH Is-Contract Check","description":"Check whether a 0x address on Ethereum is a smart contract or a plain wallet: bytecode size, whether it is an EIP-1167 minimal proxy and which implementation it points to, and whether it is a wallet that delegates to contract code (EIP-7702; delegatedTo names the code, isContract stays false). Use before sending funds or approving a spender; for a fuller risk verdict use check_counterparty. A malformed address is rejected with 400, uncharged.","url":"https://agent-data-tools.revmesh2074.workers.dev/eth/is-contract?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["address"],"properties":{"address":{"type":"string","description":"0x address"}}},"responseSchema":{"type":"object","properties":{"chain":{"type":"string"},"address":{"type":"string"},"chainId":{"type":"number"},"codeBytes":{"type":"number"},"isContract":{"type":"boolean"},"delegatedTo":{},"minimalProxy":{"type":"boolean"},"implementation":{}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USD","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_JCLIsP_b-Uno9zlcvAo5q","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":"Checks whether a given Ethereum address is a smart contract or an externally owned account (EOA), and returns code size and proxy details","exampleAgentPrompt":"Can you check if 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 is a smart contract or just a regular wallet on Ethereum, and tell me if it's a proxy?","exampleUseCases":[{"title":"Validate contract before DeFi interaction","prompt":"Before I interact with 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D, can you confirm it's actually a deployed smart contract on Ethereum and not just a wallet address?"},{"title":"Detect proxy pattern in audit workflow","prompt":"I'm auditing this address 0x1F98431c8aD98523631AE4a59f267346ea31F984 — is it a smart contract, and is it a minimal proxy or does it have its own full bytecode?"},{"title":"Screen address type for token transfer safety","prompt":"I need to send tokens to 0x000000000000000000000000000000000000dEaD — can you quickly tell me if that's a contract address or a regular EOA so I know if the tokens might get stuck?"}],"resultDescription":"Returns a JSON object with the Ethereum chain name, chainId (1 for mainnet), the queried address, the number of bytecode bytes deployed at that address, a boolean isContract flag, a boolean minimalProxy flag indicating EIP-1167 proxy patterns, and an implementation field pointing to the proxied contract address if applicable (null otherwise).","failureModes":["Invalid or malformed 0x address returns an error response","Address not found or network timeout results in failure (no charge)","Non-Ethereum chain addresses may not be supported by this endpoint path","Rate limiting or infrastructure issues on the Cloudflare Worker side"],"whenToPreferThis":"Use this endpoint when you need a cheap ($0.001), no-account-required, pay-per-call check to determine whether an Ethereum mainnet address has deployed bytecode — especially useful before sending assets, during security audits, or when building agents that need to classify addresses programmatically. Prefer this over full node RPC calls when you lack direct chain access or want a simple HTTP/MCP-compatible tool with transparent per-call pricing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T12:53:08.498Z","isFirstParty":false,"canonicalSlug":"ethereum-contract-detection-via-eth-is-contract-check-34cee04d"}