{"uid":"cap_CUDFwI161DPhv4hlTv6k6","slug":"tanod-pactlint-solidity-source-abi-lookup-d3864903","name":"Tanod pactlint – Solidity Source & ABI Lookup","description":"pactlint (Tanod) source lookup: verified Solidity source, ABI and compiler settings of a contract (Sourcify) Use when an agent needs the verified source, ABI and compiler settings of a contract at a known address.","url":"https://tanod.dev/v1/source/:chain/:address?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","required":["chain","address"],"properties":{"chain":{"enum":["ethereum","base"],"type":"string"},"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}}},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["chain","address","files"],"properties":{"abi":{"type":["array","null"]},"chain":{"type":"string"},"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"bytes":{"type":"integer"},"sha256":{"type":"string"},"content":{"type":"string"}}}},"sha256":{"type":"string"},"address":{"type":"string"},"settings":{"type":["object","null"]},"contract_name":{"type":["string","null"]},"compiler_version":{"type":["string","null"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8Tq5I3PPdrSlhViyWzCpo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves the verified Solidity source code, ABI, and compiler settings for a smart contract at a given address on Ethereum or Base using Sourcify.","exampleAgentPrompt":"Can you pull the verified Solidity source code, ABI, and compiler settings for the contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum?","exampleUseCases":[{"title":"Smart contract audit preparation","prompt":"I need to audit the contract at 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D on Ethereum — can you fetch its verified Solidity source files and compiler settings so I can review the code?"},{"title":"ABI retrieval for dApp integration","prompt":"I'm building a dApp and need the ABI for the contract deployed at 0x4200000000000000000000000000000000000006 on Base — can you look that up for me?"},{"title":"Compiler version verification for security review","prompt":"What compiler version and optimization settings were used to compile the contract at 0x6B175474E89094C44Da98b954EedeAC495271d0F on Ethereum?"}],"resultDescription":"Returns a JSON object containing the verified Solidity source files (with path, content, size in bytes, and SHA-256 hash), the contract ABI (as an array or null if unavailable), compiler settings object, compiler version string, contract name, and the contract address and chain. All fields come from Sourcify's verified contract registry.","failureModes":["Contract not verified on Sourcify — returns null or empty files array","Invalid address format (not a valid 0x hex address) — validation error","Unsupported chain — only 'ethereum' and 'base' are accepted enum values","Contract exists on-chain but has never been verified — no source available","Network/upstream Sourcify API timeout or outage"],"whenToPreferThis":"Use this endpoint when you need the verified Solidity source, ABI, or compiler settings for a contract at a known address on Ethereum or Base, especially when you require Sourcify-verified provenance rather than Etherscan-style unverified data. Prefer this over generic block explorer APIs when auditability, compiler reproducibility, or ABI accuracy is critical.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:34:36.007Z","isFirstParty":false,"canonicalSlug":"tanod-pactlint-solidity-source-abi-lookup-d3864903"}