{"uid":"cap_p3gJdQQodX7BEN1hly8-o","slug":"blockscout-smart-contract-details-by-chain-8b6eb061","name":"Blockscout Smart Contract Details by Chain","description":"Explore crypto activities with Blockscout's multichain search. Find transactions, addresses, tokens, and dapps across top blockchain networks — your go-to explorer for cross-chain blockchain data","url":"https://api.blockscout.com/%7Bchain_id%7D/api/v2/smart-contracts/%7Baddress_hash_param%7D","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":{"type":"json","example":{"abi":[{}],"name":"string","language":"string","certified":true,"file_path":"string","market_cap":"string","proxy_type":"string","reputation":"string","evm_version":"string","is_verified":true,"source_code":"string","verified_at":"string","coin_balance":"string","is_blueprint":true,"license_type":"string","package_name":"string","creation_status":"string","implementations":[{"name":"string","address_hash":"string"}],"compiler_version":"string","constructor_args":"string","compiler_settings":{},"creation_bytecode":"string","deployed_bytecode":"string","is_fully_verified":true,"optimization_runs":0,"sourcify_repo_url":"string","additional_sources":[{"file_path":"string","source_code":"string"}],"external_libraries":[{"name":"string","address_hash":"string"}],"transactions_count":0,"is_changed_bytecode":true,"has_constructor_args":true,"optimization_enabled":true,"is_partially_verified":true,"verification_metadata":{},"decoded_constructor_args":[[{}]],"is_verified_via_sourcify":true,"github_repository_metadata":{},"verified_twin_address_hash":"string","conflicting_implementations":[{"proxy_type":"string","implementations":[{"name":"string","address_hash":"string"}]}],"can_be_visualized_via_sol2uml":true,"is_verified_via_eth_bytecode_db":true,"is_verified_via_verifier_alliance":true}},"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_EJA891zUVxmSTeIOquSh-","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":"Fetches full verified smart contract metadata for a given address on a specified blockchain network, including ABI, source code, compiler settings, and verification status.","exampleAgentPrompt":"Can you pull up the full smart contract details for address 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 on Ethereum (chain ID 1) — I need the ABI, source code, compiler version, and whether it's verified?","exampleUseCases":[{"title":"Audit contract verification on Arbitrum","prompt":"Check whether the smart contract at 0x912CE59144191C1204E64559FE8253a0e49E6548 on Arbitrum (chain ID 42161) is verified and give me the source code and ABI if it is."},{"title":"Find proxy implementation for DeFi protocol","prompt":"I need to know the proxy type and implementation addresses for the contract 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum mainnet — can you look that up on Blockscout?"},{"title":"Retrieve compiler settings for security review","prompt":"For the contract at 0x6B175474E89094C44Da98b954EedeAC495271d0F on chain ID 1, can you get me the compiler version, EVM version, optimization settings, and constructor arguments so I can do a security review?"}],"resultDescription":"Returns a comprehensive JSON object containing the smart contract's ABI, verified source code, file path, compiler version, EVM version, optimization settings, proxy type, implementation addresses, constructor arguments, decoded constructor args, bytecode (creation and deployed), license type, verification status flags (verified, partially verified, verified via sourcify, verified via eth-bytecode-db, verified via verifier alliance), coin balance, transaction count, external libraries, additional source files, and GitHub repository metadata.","failureModes":["Invalid or non-existent address_hash_param returns 404 or empty result","Unsupported or incorrect chain_id returns an error or no data","Contract exists but is not verified — returns metadata without source code or ABI","Network timeout or upstream Blockscout node unavailability","Payment failure for x402-gated access resulting in 402 response"],"whenToPreferThis":"Use this endpoint when you need deep, structured smart contract metadata — including ABI, source code, and verification details — for a specific contract address on any of the supported EVM chains indexed by Blockscout. Prefer it over generic block explorers when you need machine-readable output for agent workflows, security audits, or DApp integration, especially when working across multiple chains via a single API.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-10T00:59:38.094Z","isFirstParty":false}