{"uid":"cap_KBDsUSoYMQhkk0Wi6pHZD","slug":"smart-contract-source-code-lookup-593bad20","name":"Smart Contract Source Code Lookup","description":"X402 micropayments server — AI agents pay USDC for OFAC screening, rates, and billing verification.","url":"https://x402helper.xyz/89e509/contract/source?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":{"address":{"type":"string","default":null,"description":"Contract address, 0x + 40 hex"},"network":{"enum":["base","ethereum","arbitrum","optimism","polygon","bnb"],"type":"string","default":null,"description":"EVM network (default base)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"result":{},"success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.026","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.026/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.026","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.026","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_G-JVHkyktVvuYxYuPW12K","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.026","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches the verified source code and metadata for a smart contract at a given address on an EVM network","exampleAgentPrompt":"Can you pull up the verified source code for the smart contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum?","exampleUseCases":[{"title":"Audit a DeFi protocol contract","prompt":"Fetch the source code for the contract at 0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9 on Ethereum so I can review its logic before interacting with it."},{"title":"Verify token contract on Base","prompt":"Look up the verified source code for the contract 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base — I want to see what functions it exposes."},{"title":"Inspect NFT contract on Polygon","prompt":"Can you retrieve the smart contract source code for 0x2953399124F0cBB46d2CbACD8A89cF0599974963 on Polygon so I can check its mint and transfer logic?"}],"resultDescription":"Returns a JSON object containing the verified source code, contract name, compiler version, ABI, and other metadata for the specified smart contract address on the requested EVM network. Success flag indicates whether the contract was found and is verified.","failureModes":["Contract address not verified on the specified network — returns empty or error result","Invalid contract address format (must be 0x + 40 hex characters)","Unsupported network specified","Contract exists but source code not publicly verified","Payment failure via x402 micropayment protocol"],"whenToPreferThis":"Use this endpoint when you need to programmatically retrieve verified smart contract source code and metadata for a given address on a supported EVM network (Base, Ethereum, Arbitrum, Optimism, Polygon, BNB). Prefer this when you need quick on-demand contract inspection without setting up a full blockchain node or managing API keys for Etherscan/Sourcify directly.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:42:17.708Z","isFirstParty":false,"canonicalSlug":"smart-contract-source-code-lookup-593bad20"}