{"uid":"cap_kiRRcvDZW0MD2rPvMw7uZ","slug":"ethereum-mainnet-eth-getcode-contract-bytecode-lookup-40bec3d5","name":"Ethereum Mainnet eth_getCode – Contract Bytecode Lookup","description":"ARYSPHERE sells AI-written verdicts on Base token contracts (a grade, a one-liner, a roast and the contract's facts) and Base/Ethereum chain reads, paid per call in USDC on Base over x402 v2. No account and no API key.","url":"https://api.arysphere.com/v1/ventures/x402_eth_reads_v1/eth_mainnet_eth_getcode?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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"0x + 40 hex"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"hex":"0xef01005a7fc11397e9a8ad41bf10bf13f22b0a63f96f6d","chain":"ethereum","method":"eth_getCode","result":"0xef01005a7fc11397e9a8ad41bf10bf13f22b0a63f96f6d","service":"x402_eth_reads_v1.eth_mainnet_eth_getcode"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_v7JT6_RgM_y-HlxdjQNjA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the deployed bytecode at a given Ethereum mainnet contract address using eth_getCode.","exampleAgentPrompt":"Can you fetch the deployed bytecode at Ethereum mainnet address 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2? I want to see the raw contract code stored on-chain.","exampleUseCases":[{"title":"Verify contract deployment on mainnet","prompt":"Check whether there's actually a smart contract deployed at 0xdAC17F958D2ee523a2206206994597C13D831ec7 on Ethereum mainnet — give me the raw bytecode if there is one."},{"title":"Detect EOA vs contract address","prompt":"I have this Ethereum address 0xAbcD1234567890AbcD1234567890AbcD12345678 — can you tell me if it's a smart contract or just a regular wallet by fetching its on-chain code?"},{"title":"Security audit of deployed contract code","prompt":"Pull the on-chain bytecode for the Ethereum contract at 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D so I can analyze what's actually deployed there versus what the source says."}],"resultDescription":"Returns a JSON object with an 'ok' boolean, a 'result' field containing the 0x-hex encoded bytecode string (empty '0x' if the address is an EOA or has no deployed code), the 'chain' identifier, the 'method' used (eth_getCode), and an 'error' field if ok is false.","failureModes":["Invalid address format (not 0x + 40 hex) returns an error response with ok: false","Address with no deployed contract returns '0x' as bytecode (not an error, but indicates EOA)","Network or RPC node unavailability returns ok: false with an error message","Payment failure (x402 protocol) prevents the call from completing","Rate limiting or gateway errors may return non-200 HTTP responses"],"whenToPreferThis":"Use this endpoint when you need to read raw deployed bytecode from Ethereum mainnet specifically — for example, to verify a contract is live, distinguish EOAs from contracts, or retrieve on-chain code for static analysis. Prefer this over generic RPC providers when you want a pay-per-call x402-compatible endpoint with no subscription setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T12:40:59.422Z","isFirstParty":false,"canonicalSlug":"ethereum-mainnet-eth-getcode-contract-bytecode-lookup-40bec3d5"}