{"uid":"cap_lfUyRjQmzogWZ2GDNOUt0","slug":"webacy-smart-contract-source-code-fetcher-2fed1ecc","name":"Webacy Smart Contract Source Code Fetcher","description":"Verified source code for a smart contract, fetched from the chain-appropriate block explorer. Returns `null` if unverified or unavailable.","url":"https://api.webacy.com/source-code/:contractAddress?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"},"pathParams":{"type":"object","properties":{"contractAddress":{"type":"string","description":"Contract address"}}},"queryParams":{"type":"object","required":["chain"],"properties":{"chain":{"type":"string","description":"Blockchain network, e.g. eth, bsc, pol, arb, opt, base"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.5","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.5/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Hk5CQvCVaNyEx-LDLVRec","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.5","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches verified source code for a smart contract from the chain-appropriate block explorer, returning null if unverified or unavailable.","exampleAgentPrompt":"Can you pull the verified source code for the smart contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum (eth)?","exampleUseCases":[{"title":"Audit a DeFi contract before investing","prompt":"Before I put money into this protocol, can you fetch the verified source code for the contract 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D on Ethereum so I can review what it actually does?"},{"title":"Check if an NFT contract is open source","prompt":"I want to know if this NFT contract on Polygon has verified source code — can you look it up for address 0x2953399124F0cBB46d2CbACD8A89cF0599974963 on pol?"},{"title":"Security review of a BSC token contract","prompt":"Can you get the verified Solidity source code for the token contract at 0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82 on BSC so I can check if there are any suspicious functions?"}],"resultDescription":"Returns the verified source code of the smart contract as fetched from the relevant block explorer (e.g. Etherscan, BscScan, Polygonscan). Returns null if the contract's source code is unverified or unavailable on that chain's explorer.","failureModes":["Returns null if the contract source is not verified on the block explorer","Invalid or malformed contract address returns an error","Unsupported chain identifier causes a bad request response","Contract address not found on the specified chain","Rate limiting or API quota exceeded","Network/timeout errors when reaching the block explorer"],"whenToPreferThis":"Use this endpoint when you need to retrieve the raw, verified Solidity (or other language) source code for a specific smart contract on an EVM-compatible chain. Prefer this over generic block explorer scraping because it normalizes the response across multiple chains and integrates with Webacy's broader risk analysis ecosystem. Best suited when verifying whether a contract is open-source before conducting audits, security reviews, or investing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:35:50.862Z","isFirstParty":false,"canonicalSlug":"webacy-smart-contract-source-code-fetcher-2fed1ecc"}