{"uid":"cap_yNSv2yDIivsdmGlZ0EHOV","slug":"ethereum-address-bytecode-inspector-5617c681","name":"Ethereum Address Bytecode Inspector","description":"Call when an agent needs bytecode size, is_contract, and a keccak256 hash of the first bytes for one Ethereum address. include_bytecode returns a truncated preview. An empty account is is_contract false. Read-only. No spend. Send JSON {\"address\":\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\"}. Exact $0.002 USDC on Base. Try unpaid POST /v1/sandbox/eth-code first.","url":"https://agentshelf.syntexa.ch/v1/eth-code?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"address":{"type":"string","examples":["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"],"description":"Address on Ethereum mainnet. Example: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913. Returns size, is_contract, and a keccak of the first bytes."},"include_bytecode":{"type":"boolean","description":"When true, include at most 128 bytes of bytecode. Example: false. Default is false. The hash is still returned."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_JAcBZphNaSLBQMf3sss7w","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns bytecode size, contract status (is_contract), and keccak256 hash of the first bytes for a given Ethereum address, with optional truncated bytecode preview.","exampleAgentPrompt":"Can you check if 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 is a smart contract on Ethereum and give me the keccak256 hash of its bytecode along with how many bytes of code it has?","exampleUseCases":[{"title":"Contract vs wallet classification","prompt":"Tell me whether 0xdAC17F958D2ee523a2206206994597C13D831ec7 is a smart contract or a regular wallet on Ethereum, and what its bytecode size is."},{"title":"Bytecode fingerprinting for security audit","prompt":"I need a keccak256 fingerprint of the bytecode at 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D on Ethereum — can you also include a preview of the first 128 bytes of the bytecode?"},{"title":"Empty account detection","prompt":"Can you check whether the address 0x000000000000000000000000000000000000dEaD has any code deployed on Ethereum mainnet, or if it's just an empty account?"}],"resultDescription":"Returns a JSON object containing: the bytecode size in bytes (integer), a boolean is_contract indicating whether the address has deployed code, and a keccak256 hash of the first bytes of bytecode. If include_bytecode is true, a truncated preview of up to 128 bytes of bytecode is also returned. For empty accounts, is_contract is false and size is 0.","failureModes":["Invalid Ethereum address format returns an error response","Address not found or network timeout results in an error","Malformed JSON body causes a 400 bad request","Unpaid or failed x402 payment results in a 402 Payment Required response before data is returned","Rate limiting or overload may cause transient 5xx errors"],"whenToPreferThis":"Use this endpoint when you need to determine whether an Ethereum mainnet address is a smart contract or an EOA (externally owned account), retrieve its bytecode size, or get a keccak256 hash of its deployed code — all in a single lightweight read-only call. Prefer this over full blockchain node queries when you don't need the full bytecode and just want a quick fingerprint or contract check. The sandbox endpoint (/v1/sandbox/eth-code) is available for free testing before committing to the $0.002 USDC paid call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-23T06:51:23.335Z","isFirstParty":false,"canonicalSlug":"ethereum-address-bytecode-inspector-5617c681"}