{"uid":"cap_fM6cqLw4uvNUJRJoed0u6","slug":"blockscout-smart-contract-lookup-596f5c4d","name":"Blockscout Smart Contract Lookup","description":"Access to api/v2/smart-contracts/:address_hash. Retrieve detailed information about a verified smart contract","url":"https://api.blockscout.com/:chain_id/api/v2/smart-contracts/:address_hash_param","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"},"pathParams":{"type":"object","properties":{"chain_id":{"type":"string"},"address_hash_param":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_OGz1QR5IYnrprG0uIX6Me","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves detailed verified smart contract information for a given contract address on a specified blockchain network","exampleAgentPrompt":"Can you pull up the verified smart contract details for address 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum mainnet (chain ID 1) from Blockscout?","exampleUseCases":[{"title":"Audit DeFi protocol contract code","prompt":"I need to review the source code and ABI for the Uniswap V3 factory contract at 0x1F98431c8aD98523631AE4a59f267346ea31F984 on Ethereum mainnet — can you pull it up from Blockscout?"},{"title":"Verify NFT contract deployment","prompt":"Can you check Blockscout and get the verified smart contract info for the contract at 0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D on Ethereum (chain ID 1)? I want to confirm the compiler version and whether it's verified."},{"title":"Cross-chain contract inspection on Polygon","prompt":"Look up the smart contract details on Blockscout for address 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174 on Polygon (chain ID 137) — I need the ABI and constructor arguments."}],"resultDescription":"Returns detailed information about a verified smart contract including its name, source code, ABI, bytecode, compiler version and settings, constructor arguments, verification status, creation transaction hash, and associated metadata such as token information if applicable.","failureModes":["Contract address not found or not deployed on the specified chain — returns 404","Contract exists but is not verified — returns partial data or a not-verified status","Invalid address format — returns 400 bad request","Unsupported or unknown chain_id — returns error or empty response","Rate limiting or payment failure — returns 402 or 429"],"whenToPreferThis":"Use this endpoint when you need verified smart contract source code, ABI, or compilation metadata for a specific contract address on an EVM-compatible chain indexed by Blockscout. Prefer it over Etherscan equivalents when working with chains that Blockscout indexes but Etherscan does not (e.g., many L2s and alt-EVMs), or when you need a pay-per-call model without API key registration.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:45:38.595Z","isFirstParty":false}