{"uid":"cap_Wt-wyZ-Vz1jQqKSVf6Miv","slug":"axiom-works-chain-code-checker-d1390301","name":"Axiom Works Chain Code Checker","description":"Is this address a contract or a wallet (EOA)? eth_getCode → is_contract, bytecode size and prefix, EIP-7702 delegation detection. Example: {address:\"0x8335…2913\", chain:\"base\"}. Use /contract ($0.003) for proxy/owner/token detail. $0.001.","url":"https://api.axiomworks.co.uk/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":["address"],"properties":{"chain":{"enum":["base","ethereum","arbitrum","optimism","polygon"],"type":"string","description":"EVM chain (default base)"},"wallet":{"type":"string","description":"Alias for address (owner wallet)"},"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"Address"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"code_size":{"type":"number"},"is_contract":{"type":"boolean"},"eip7702_delegate":{"type":["string","null"]}}}}}}},"responseSchema":{"type":"json","example":{"chain":"base","is_eoa":false,"source":"eth_getCode","address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chain_id":8453,"code_size":1852,"code_prefix":"0x60806040526004361061005a5760003560e01c80635c60da1b11610043578063","is_contract":true,"eip7702_delegate":null}},"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_ZJciNfHuil8os1HWpyG6A","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":"Determines whether an Ethereum address is a smart contract or an EOA (externally owned account) by fetching its bytecode via eth_getCode, and detects EIP-7702 delegations.","exampleAgentPrompt":"Is 0x8335...2913 a smart contract or a regular wallet on Base? Also check if it has any EIP-7702 delegation set.","exampleUseCases":[{"title":"Pre-transaction address type check","prompt":"Before I send tokens to 0xAbCd1234567890abcdef1234567890abcdef1234 on Ethereum, can you tell me if that address is a smart contract or a plain wallet?"},{"title":"EIP-7702 delegation detection","prompt":"Check if 0xDEADbEeF00000000000000000000000000000001 on Arbitrum has an EIP-7702 delegation set — I want to know if it's a delegated smart account."},{"title":"DeFi protocol address audit","prompt":"I need to confirm that 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base is actually a deployed smart contract and not just an empty wallet — can you get the bytecode size and prefix?"}],"resultDescription":"A JSON object containing: the address queried, the chain name and chain ID, a boolean is_contract flag, a boolean is_eoa flag, the bytecode size in bytes, a hex prefix of the bytecode, the source method (eth_getCode), and an eip7702_delegate field (string address if delegated, null otherwise).","failureModes":["Invalid address format (not 0x + 40 hex chars) → validation error","Unsupported chain name → enum validation error","Address not found on specified chain → may return is_contract: false with code_size: 0","RPC timeout or chain node unavailability → 5xx error","Payment failure (x402) → 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need a fast, cheap ($0.001) check on whether an address is a contract or EOA, or to detect EIP-7702 delegations, before deciding whether to call the more expensive /contract endpoint ($0.003) for proxy/owner/token details. Ideal as a first-pass filter in automated pipelines that process many addresses.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-12T12:36:18.437Z","isFirstParty":false,"canonicalSlug":"axiom-works-chain-code-checker-d1390301"}