{"uid":"cap_W1pfuSEWKOQJ5At8om2pu","slug":"code402-chain-code-lookup-74b17110","name":"code402 Chain Code Lookup","description":"Deterministic compliance verification (IBAN, sanctions, onchain address) with XDR-1 signed receipts, plus Ethereum chain-data endpoints. Paid per call via x402 on Base (USDC).","url":"https://verify.code402.dev/v1/chain/code/%7Baddress%7D?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object"}}},"output":{"type":"object","required":["type","example"],"properties":{"type":{"type":"string","const":"json"},"example":{"result":"string","network":"ethereum-mainnet"}}}}},"responseSchema":{"type":"json","example":{"result":"chain data","network":"ethereum"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0029","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.0029/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0029","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0029","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_A0TD8iqY66rSWkWelgRCm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0029","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves Ethereum chain data for a specific smart contract or address by code hash lookup","exampleAgentPrompt":"Can you pull the Ethereum chain code data for the contract at address 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 using code402's verify API?","exampleUseCases":[{"title":"Verify smart contract deployment","prompt":"Check whether there's any contract code deployed at Ethereum address 0xdAC17F958D2ee523a2206206994597C13D831ec7 — I want to confirm it's a live contract and not an EOA."},{"title":"DeFi protocol contract inspection","prompt":"Fetch the onchain chain data for the Uniswap v3 router at 0xE592427A0AEce92De3Edee1F18E0157C05861564 on Ethereum — I need to confirm what's actually deployed there before integrating."},{"title":"Compliance check on counterparty contract","prompt":"Before we send funds, can you look up the Ethereum code data for address 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D using code402 to make sure it's a recognized contract and not something suspicious?"}],"resultDescription":"Returns a JSON object containing chain data fields including a result string and network identifier (e.g. 'ethereum'), indicating what code or data is associated with the queried Ethereum address on the network.","failureModes":["Invalid or malformed Ethereum address returns an error response","Address not found on chain returns empty or null result","Payment not received via x402 protocol results in 402 Payment Required response","Network congestion or RPC unavailability may cause timeout or 503","Address with no deployed code returns empty bytecode result"],"whenToPreferThis":"Choose this endpoint when you need deterministic, paid-per-call Ethereum chain data lookups with cryptographic receipt guarantees (XDR-1 signed), and you are already operating within the x402/Base USDC micropayment ecosystem. Prefer this over free public RPC calls when auditability and signed receipts are required for compliance workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:34:34.741Z","isFirstParty":false,"canonicalSlug":"code402-chain-code-lookup-74b17110"}