{"uid":"cap_ohy6Cy4IKT-UaMwBC2oMe","slug":"smart-contract-abi-lookup-via-sourcify-6d254100","name":"Smart Contract ABI Lookup via Sourcify","description":"The verified ABI of a smart contract on any EVM chain from Sourcify: function signatures, event names, contract name, compiler version and proxy implementations, plus the full ABI JSON ready for a client. Query: ?address=0x8335…&chain_id=8453","url":"https://api.x-402.online/v1/chain/abi?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","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"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_VryBdkg-Dfn-knk2SJzwc","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":"Returns the verified ABI of a smart contract on any EVM-compatible chain from Sourcify, including function signatures, event names, contract name, compiler version, proxy details, and the full ABI JSON.","exampleAgentPrompt":"Can you fetch the verified ABI for the smart contract at 0x8335aced2a0a332e0c3fe6f8d843d1f3fe4d2a11 on Base (chain ID 8453)? I need the function signatures and event names so I can interact with it.","exampleUseCases":[{"title":"Decode DeFi protocol contract interface","prompt":"I need the full ABI for the contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum mainnet (chain ID 1) — specifically the function signatures and any events it emits."},{"title":"Verify proxy implementation for auditing","prompt":"Can you pull the Sourcify-verified ABI for 0x4200000000000000000000000000000000000010 on Base (chain 8453) and tell me if it's a proxy and what the implementation address is?"},{"title":"Auto-generate contract bindings for a dApp","prompt":"I'm building an integration and need the complete ABI JSON for the smart contract at 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 on chain 1 so I can generate TypeScript bindings."}],"resultDescription":"Returns a structured response containing the contract's full ABI JSON (array of function and event descriptors), individual function signatures, event names, the contract name, compiler version used, and proxy implementation details if applicable — sourced from Sourcify's verified contract registry.","failureModes":["Contract not verified on Sourcify — returns an error indicating no verified source is available for that address/chain combination","Invalid or malformed contract address — returns a validation error","Unsupported chain ID — returns an error if the chain is not indexed","Network timeout fetching data from Sourcify — returns a gateway or timeout error","Contract exists on-chain but has no Sourcify verification — returns not-found response"],"whenToPreferThis":"Choose this endpoint when you need human-readable, verified ABI data for a smart contract on any EVM chain and want it sourced from Sourcify's verification registry. It is ideal when you need function signatures, event names, or proxy resolution without needing to compile source code yourself. Prefer this over raw on-chain bytecode scraping or Etherscan APIs when Sourcify verification coverage is sufficient and you want a pay-per-call model with no API key management.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T12:30:11.393Z","isFirstParty":false,"canonicalSlug":"smart-contract-abi-lookup-via-sourcify-6d254100"}