{"uid":"cap_b_NHet9uc_V4tgUD4qTX3","slug":"evm-contract-bytecode-fetcher-47433da4","name":"EVM Contract Bytecode Fetcher","description":"Fetch deployed EVM contract runtime bytecode and its Keccak-256 code hash to fingerprint or compare contracts, or feed a disassembler. Supports Ethereum, Base, Arbitrum, Optimism and Polygon, with optional historical block reads. Returns full hex code, byte size and isContract; an empty-code address returns 0x and a null hash. Key-free RPC with endpoint fallback; code capped at 256 KiB.","url":"https://chain.openverbs.com/v1/bytecode?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"block":{"type":["integer","string"],"description":"Non-negative safe integer, decimal/hex block number, or latest/earliest/pending/safe/finalized. Default latest."},"chain":{"enum":["ethereum","base","arbitrum","optimism","polygon"],"type":"string","description":"EVM chain to query. One of: ethereum, base, arbitrum, optimism, polygon. Default \"ethereum\"."},"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"Address whose deployed code to read."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.006","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.006/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_OgVI9XPaULSSowUEn8PmC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.006","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches the deployed runtime bytecode and Keccak-256 code hash of any EVM smart contract address across Ethereum, Base, Arbitrum, Optimism, and Polygon, with optional historical block support.","exampleAgentPrompt":"Can you fetch the deployed bytecode and code hash for the contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum so I can fingerprint it?","exampleUseCases":[{"title":"Contract identity verification","prompt":"I need to verify that the contract at 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 on Ethereum is genuinely the Uniswap token — can you fetch its bytecode and code hash so I can compare it against the known deployment?"},{"title":"Historical bytecode snapshot","prompt":"Fetch the runtime bytecode of the contract at 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D on Ethereum as it existed at block 15000000, so I can see if it was upgraded since then."},{"title":"Check if address is a contract","prompt":"Can you check whether the address 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Ethereum is actually a deployed contract or just a regular wallet — fetch its code and tell me the byte size?"}],"resultDescription":"Returns a JSON object containing the full hex-encoded runtime bytecode (capped at 256 KiB), the Keccak-256 hash of that code, the byte length, and a boolean isContract field. For non-contract (EOA) addresses, bytecode is '0x' and the hash is null.","failureModes":["Invalid address format (not a valid 0x-prefixed 40-hex-char address) returns a validation error","Unsupported chain name returns an enum validation error","Block number out of range or not yet mined returns an RPC error","Address is an EOA — returns 0x bytecode and null hash (not an error, but isContract is false)","Bytecode exceeds 256 KiB cap — response is truncated or rejected","RPC node unavailability on the selected chain triggers endpoint fallback; if all fail, returns a service error"],"whenToPreferThis":"Choose this endpoint when you need to retrieve, fingerprint, or compare the deployed runtime bytecode of a smart contract on any of the five supported EVM chains (Ethereum, Base, Arbitrum, Optimism, Polygon). It is ideal for security audits, contract identity verification, detecting proxy upgrades at historical blocks, or feeding raw bytecode to a disassembler. It requires no API key and handles RPC fallback automatically. Prefer it over general block explorers when you need structured, machine-readable bytecode output rather than a human-facing UI.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:34:03.034Z","isFirstParty":false,"canonicalSlug":"evm-contract-bytecode-fetcher-47433da4"}