{"uid":"cap_K4LrfZvUxl-LzSFGHSffE","slug":"saylor-innovations-evm-contract-wallet-inspector-6f386646","name":"Saylor Innovations EVM Contract/Wallet Inspector","description":"Contract or wallet check on 16 EVM chains: deployed bytecode size, account kind including EIP-7702 delegated accounts, optional runtime bytecode.","url":"https://saylorinnovations.com/api/chain/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"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["chain","address"],"properties":{"chain":{"type":"string","description":"chain name (ethereum, base, arbitrum, optimism, polygon, bsc, avalanche, gnosis, linea, scroll, mantle, blast, sonic, celo, berachain, unichain) or chain id"},"address":{"type":"string","description":"the address to check"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["chain","chain_id","address","is_contract","account_kind","code_size_bytes","source"],"properties":{"chain":{"type":"string","description":"the chain name that was queried"},"source":{"type":"string","description":"where the data was read from"},"address":{"type":"string","description":"the address that was checked"},"bytecode":{"type":["string","null"],"description":"runtime bytecode as hex, only when full=true"},"chain_id":{"type":"number","description":"EIP-155 chain id of that network"},"is_contract":{"type":"boolean","description":"true when the address has contract code (EIP-7702 delegated accounts count as accounts, not contracts)"},"account_kind":{"type":"string","description":"contract, eoa_or_empty or eip7702_delegated_eoa"},"code_size_bytes":{"type":"number","description":"size of the deployed runtime code in bytes"},"delegate_target":{"type":["string","null"],"description":"for EIP-7702 accounts, the contract the account delegates to"},"bytecode_truncated":{"type":"boolean","description":"true when bytecode was cut at 24,576 bytes"}}}}}}},"responseSchema":null,"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_KGQsM-lPnuT7biHVkEBTO","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":"Returns deployed bytecode size, account type (EOA, contract, EIP-7702 delegated), and optionally runtime bytecode for any address on 16 EVM chains","exampleAgentPrompt":"Is 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 a contract or a regular wallet on Ethereum, and how big is its bytecode?","exampleUseCases":[{"title":"Smart contract deployment verification","prompt":"Can you confirm that 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 is actually a deployed contract on Ethereum and tell me its bytecode size?"},{"title":"EIP-7702 delegated account detection","prompt":"Check if 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Base is an EIP-7702 delegated account and if so, what contract does it delegate to?"},{"title":"Cross-chain account type audit","prompt":"I need to know whether 0x4200000000000000000000000000000000000006 is a contract or an EOA on Optimism — also grab the full runtime bytecode if you can."}],"resultDescription":"A JSON object containing the queried chain name and chain ID, the address checked, a boolean is_contract flag, an account_kind string (contract, eoa_or_empty, or eip7702_delegated_eoa), the deployed code size in bytes, optionally the runtime bytecode as hex (when full=true), and for EIP-7702 accounts the delegate_target contract address.","failureModes":["Invalid or malformed address returns an error response","Unsupported chain name or chain ID returns an error","Address not found on chain returns code_size_bytes of 0 and is_contract false","Network or RPC timeout may cause temporary unavailability","EIP-7702 delegate_target only populated for delegated EOA accounts; null otherwise"],"whenToPreferThis":"Choose this endpoint when you need to classify an EVM address as a contract, plain EOA, or EIP-7702 delegated account across any of 16 supported chains, especially when bytecode size or the delegation target matters. It is particularly valuable for detecting EIP-7702 smart accounts, which many generic RPC calls misclassify. Prefer this over raw RPC calls when you want structured, normalized output across chains without managing individual node connections.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T07:22:02.612Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-evm-contract-wallet-inspector-6f386646"}