{"uid":"cap_c6Rk-2q8ehD7M2Sy2dRVP","slug":"evm-address-contract-detection-26de7bff","name":"EVM Address Contract Detection","description":"Free APEX on X1, and free USDC plus APEX on Arc, three times a day. No gas, no sign-up. Plus a swap, a screener, APEX City and token checks.","url":"https://apexfaucet.xyz/api/x402/evm-code?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","queryParams"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["address"],"properties":{"chain":{"enum":["ethereum","base","arc","bnb"],"type":"string","description":"Chain to read: ethereum, base, arc or bnb. Default ethereum."},"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"Address to inspect."}}}}},"output":{"type":"object"}}},"responseSchema":{"type":"json","schema":{"type":"object","properties":{"ok":{"type":"boolean"},"data":{"type":"object"},"paid":{"type":"number"}}},"example":{"ok":true,"data":{"ok":true,"block":52559423,"chain":"base","address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","codeSize":1852,"blockTime":"2026-10-13T16:16:33.000Z","isContract":true,"eip7702DelegatesTo":null,"eip1967Implementation":null,"zeppelinosImplementation":"0x2Ce6311ddAE708829bc0784C967b7d77D19FD779"},"paid":0.001}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vpLMYV69mHDfWvFtqkZMf","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks whether an Ethereum-compatible address is a smart contract (vs. EOA) on Ethereum, Base, Arc, or BNB Chain, returning code size, proxy implementation addresses, and EIP-7702 delegation info.","exampleAgentPrompt":"Can you check whether 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base is a smart contract or a regular wallet, and tell me if it's a proxy pointing to an implementation?","exampleUseCases":[{"title":"Token contract verification before trading","prompt":"Before I buy this token, can you check if 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum is actually a deployed smart contract and whether it's a proxy?"},{"title":"DeFi protocol proxy inspection","prompt":"I want to know if the address 0x4200000000000000000000000000000000000006 on Base is a contract, and if so, what implementation contract it delegates to."},{"title":"EIP-7702 delegation check on BNB","prompt":"Can you look up 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c on BNB Chain and tell me whether it's a contract, its code size, and if it has any EIP-7702 delegation set?"}],"resultDescription":"A JSON object containing: isContract (boolean), codeSize (bytes of deployed bytecode), the chain and block number at which the check was made, block timestamp, an eip7702DelegatesTo field (address or null), an eip1967Implementation field for EIP-1967 proxies, and a zeppelinosImplementation field for OpenZeppelin proxy patterns.","failureModes":["Invalid address format (not matching 0x + 40 hex chars) returns validation error","Unsupported chain name returns enum error","Network RPC unavailability may cause timeout or error response","Address that is valid but not yet indexed may return stale block data","Payment failure returns 402 before any data is returned"],"whenToPreferThis":"Use this endpoint when you need a fast, paid, multi-chain check of whether an address is a smart contract versus an EOA, especially when you also need proxy implementation addresses (EIP-1967, ZeppelinOS) or EIP-7702 delegation targets. Prefer this over free block explorers when you need programmatic, structured output without scraping, or when checking addresses on Arc chain which may not be indexed elsewhere.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T00:40:01.562Z","isFirstParty":false,"canonicalSlug":"evm-address-contract-detection-26de7bff"}