{"uid":"cap_Q1X-6eXhcG352lQxmetHt","slug":"evm-contract-source-abi-resolver-608171a3","name":"EVM Contract Source & ABI Resolver","description":"Fetch a verified smart-contract's full source, ABI, compiler settings and NatSpec docs for an EVM address, and automatically resolve a proxy to its implementation so the response also carries the implementation ABI. One call returns everything an audit or integration agent needs to understand the contract, keyless and pay-per-call. Unverified contracts are reported honestly.","url":"https://payai.agentstools.dev/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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["address"],"properties":{"address":{"type":"string","description":"Contract address, 0x + 40 hex"},"network":{"enum":["base","ethereum","arbitrum","optimism","polygon","bnb"],"type":"string","description":"EVM network (default 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.02","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":{"p10Cents":"2.0000","medianCents":"2.0000","p90Cents":"2.0000","minCents":"2.0000","maxCents":"2.0000","p95Cents":"2.0000","sampleCount":1,"varies":false,"failureChargeRate":1},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7DDrZvU9USK7OHJUthau0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches verified smart contract source code, ABI, compiler settings, NatSpec docs, and proxy implementation ABI for any EVM contract address across multiple networks","exampleAgentPrompt":"Can you pull the verified source code, ABI, and NatSpec docs for the contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum — and if it's a proxy, resolve it to the implementation ABI too?","exampleUseCases":null,"resultDescription":"Returns the contract's full verified Solidity source, ABI (including proxy implementation ABI if applicable), compiler version and optimization settings, and NatSpec documentation. If the contract is unverified, an honest error is returned indicating that. One response covers everything needed to audit or integrate with the contract.","failureModes":["Contract address is not verified on the target network — returns an honest 'unverified' status rather than partial data","Invalid address format (not 0x + 40 hex) — returns a 400-level validation error","Unsupported network specified — returns an error listing valid networks","EOA address (not a contract) passed — returns an appropriate error indicating no contract found","Proxy resolution fails if implementation slot is non-standard — may return base proxy ABI only","Payment not completed — returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need verified source code, the full ABI, or NatSpec documentation for an EVM contract — especially for audit, integration, or security research tasks. It is superior to a raw Etherscan API call because it automatically resolves proxies to their implementation and bundles compiler metadata and NatSpec in one response. Prefer this over a wallet-balance or token-risk endpoint when your goal is understanding contract logic rather than token economics or balances.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T00:56:30.286Z","isFirstParty":false,"canonicalSlug":"evm-contract-source-abi-resolver-608171a3"}