{"uid":"cap_b5Sokx1R2Q3rSg0Un6Lbj","slug":"agent-data-tools-revmesh2074-workers-dev-contract-abi-lookup-sourcify-81846e97","name":"Contract ABI Lookup (Sourcify-verified, Multi-chain)","description":"The verified ABI of a smart contract on Ethereum, Base, Arbitrum, Optimism or Polygon from Sourcify's open verification repository: contract name, compiler, match quality, every function and event signature, the full ABI, and for proxies the implementation contract with its ABI. Optional source=true adds the main source file (up to 20,000 characters). Unverified contracts are an uncharged 404. Use before calling or decoding a contract.","url":"https://agent-data-tools.revmesh2074.workers.dev/contract/abi?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["address"],"properties":{"chain":{"type":"string","description":"ethereum (default), base, arbitrum, optimism or polygon"},"source":{"type":"string","description":"true to include the main source file"},"address":{"type":"string","description":"Contract 0x address"}}},"responseSchema":{"type":"object","properties":{"abi":{"type":"array","items":{}},"name":{"type":"string"},"chain":{"type":"string"},"match":{"type":"string"},"proxy":{"type":"object","properties":{"type":{"type":"string"},"implementation":{"type":"string"},"implementationName":{"type":"string"}}},"errors":{"type":"array","items":{}},"events":{"type":"array","items":{"type":"string"}},"source":{"type":"string"},"address":{"type":"string"},"compiler":{"type":"string"},"functions":{"type":"array","items":{"type":"object","properties":{"signature":{"type":"string"},"stateMutability":{"type":"string"}}}}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USD","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lEcRS2EvvbMi84jAQozue","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"agent-data-tools.revmesh2074.workers.dev","brandSlug":"agent-data-tools-revmesh2074-workers-dev-x402","brandBaseUrl":"https://agent-data-tools.revmesh2074.workers.dev","brandDocsUrl":null,"whatItDoes":"Returns the verified ABI, function/event signatures, compiler info, and optionally source code for a smart contract on Ethereum, Base, Arbitrum, Optimism, or Polygon.","exampleAgentPrompt":"Can you fetch the verified ABI for the contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum — I want to see its function signatures before I call it?","exampleUseCases":[{"title":"Decode DeFi contract before interaction","prompt":"I'm about to interact with the Uniswap v3 pool contract at 0x8ad599c3A0ff1De082011EFDDc58f1908eb6e6D8 on Ethereum — can you pull its verified ABI and list all the functions so I know what I can call?"},{"title":"Inspect proxy implementation contract","prompt":"The contract at 0x4Fabb145d64652a948d72533023f6E7A623C7C53 on Ethereum looks like a proxy — can you fetch its ABI and tell me what the implementation contract is and what functions it exposes?"},{"title":"Retrieve contract source and ABI on Base","prompt":"Can you get the verified ABI and main source file for the contract at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base so I can review what it does before integrating it?"}],"resultDescription":"Returns a JSON object with: contract name, chain, compiler version, match quality (full/partial), an array of function objects with signatures and state mutability, an array of event signatures, the full raw ABI array, and optionally the main Solidity source file (up to 20,000 characters). For proxy contracts, also returns a proxy object with type, implementation address, implementation name, and the implementation's ABI. Unverified contracts return a 404 (not charged).","failureModes":["Contract not verified on Sourcify → 404 (not charged)","Invalid or malformed contract address → error response","Unsupported chain name → error response","Contract address is an EOA (not a contract) → 404","Source file exceeds 20,000 characters → truncated or omitted"],"whenToPreferThis":"Use this endpoint when you need to inspect, call, or decode a smart contract and need its verified ABI from Sourcify — particularly when you need function/event signatures before making an eth_call, when you want to confirm a proxy's implementation, or when you need the actual Solidity source. Prefer this over on-chain approaches when you want human-readable function names and structured ABI without manual decoding. Best choice when working across Ethereum, Base, Arbitrum, Optimism, or Polygon with a single unified API.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-26T06:52:10.128Z","isFirstParty":false,"canonicalSlug":"agent-data-tools-revmesh2074-workers-dev-contract-abi-lookup-sourcify-81846e97"}