{"uid":"cap_ZgWVeDq6kAnGug7yr7lEG","slug":"smart-contract-source-code-lookup-bb0de2ca","name":"Smart Contract Source Code Lookup","description":"Pay-per-call stock, macro, on-chain, and crypto data over the x402 protocol. USDC on Base or Solana, no API keys, no subscriptions.","url":"https://x402-stock-indicators.vercel.app/contract-source/%7Baddress%7D","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"required":{"type":"string"},"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"abi":[{"name":"someFunction","type":"function","inputs":[],"outputs":[],"constant":false}],"chain":"eth","address":"0xbb9bc244d798123fde783fcc1c72d3bb8c189413","is_proxy":false,"verified":true,"source_code":"pragma solidity ^0.4.26;\n\ncontract Test12345 { ... }","contract_name":"Test12345","compiler_version":"v0.4.26+commit.4563c3fc","optimization_used":true,"implementation_address":null}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.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_xRUFUIhTlCQo_7hVB39W6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches verified ABI, source code, compiler metadata, and proxy info for a smart contract by on-chain address","exampleAgentPrompt":"Can you pull up the verified source code and ABI for the smart contract at 0xbb9bc244d798123fde783fcc1c72d3bb8c189413 on Ethereum — I want to see if it's a proxy and what the compiler version was.","exampleUseCases":[{"title":"Audit a DeFi contract before investing","prompt":"Before I interact with this DeFi protocol, can you fetch the verified source code and ABI for the contract at 0x7a250d5630b4cf539739df2c5dacb4c659f2488d on Ethereum so I can see what functions it exposes and whether it's a proxy?"},{"title":"Detect proxy implementation address","prompt":"I need to know if the contract at 0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f is a proxy — if so, what's the implementation address? Grab the contract metadata for me."},{"title":"Integrate contract ABI into a dApp","prompt":"I'm building a frontend and need the ABI for the contract deployed at 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 — can you fetch the verified ABI and contract name so I can wire it up?"}],"resultDescription":"A JSON object containing the contract's ABI (array of function/event definitions), chain identifier, contract address, whether it is a proxy, verification status, full Solidity source code, contract name, compiler version, whether optimization was used, and the implementation address if it is a proxy contract.","failureModes":["Contract address not verified on-chain — returns unverified or empty source","Invalid or malformed address format — may return 4xx error","Contract not found on the specified chain — empty or null response","Rate limiting or payment failure via x402 protocol — 402 Payment Required if USDC payment not processed","Network timeout if the underlying on-chain data provider is slow"],"whenToPreferThis":"Choose this endpoint when you need permissionless, pay-per-call access to smart contract source code and ABI without registering for an Etherscan or Alchemy API key. Ideal for agents that need on-demand contract introspection without managing subscriptions. Prefer this over Etherscan API when operating in a crypto-native agent environment using USDC micropayments via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-12T12:55:55.477Z","isFirstParty":false}