{"uid":"cap_z54Xlvoq5yqUV84W6gPcC","slug":"stablecrypto-dev-07fc69b3","name":"stablecrypto.dev Smart Contract Source Code Fetcher","description":"Fetches verified smart contract source code by address.","url":"https://stablecrypto.dev/api/etherscan/contract/getsourcecode","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"address":{"type":"string","description":"Verified contract address"},"chainid":{"type":"number","description":"EVM chain ID (1=Ethereum, 137=Polygon, 8453=Base, etc.)"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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_oJ2V3v6rXN2jji4AsB3GH","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 smart contract source code from Etherscan by contract address on Ethereum","exampleAgentPrompt":"Can you pull the verified Solidity source code for the smart contract at address 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum?","exampleUseCases":null,"resultDescription":"Returns the verified smart contract source code, including the Solidity code, ABI, contract name, compiler version, optimization settings, and verification status as indexed by Etherscan for the given contract address.","failureModes":["Contract address not verified on Etherscan — returns empty or unverified status","Invalid Ethereum address format — returns error","Contract not found on the network — returns not found error","Etherscan API rate limit or downstream unavailability — returns timeout or error","Payment failure via x402 protocol — call not executed"],"whenToPreferThis":"Use this endpoint when you need to retrieve verified Solidity source code and ABI for a deployed Ethereum smart contract by its address, especially in DeFi analysis, security auditing, or contract inspection workflows. Prefer this over direct Etherscan API calls when operating in an x402 micropayment-enabled agent context.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:32:12.469Z","isFirstParty":false}