{"name":"contract-source-verified","description":"Fetches verified contract source code and ABI for a deployed contract on Ethereum, Optimism, Polygon, Base, or Arbitrum. Returns whether the source is verified, the contract name, compiler version, parsed ABI (as a JSON array, not a string), full Solidity source code (multi-file sources reassembled with '// File: ...' separators), license type, optimizer settings, constructor arguments, and, for proxy contracts, the implementation address. Wraps Etherscan v2's multichain getsourcecode endpoint. Use it as an Etherscan source lookup, Basescan ABI fetcher, Solidity source lookup, contract verification check, or ABI fetcher.","price":"$0.01","method":"POST","input_schema":{"properties":{"address":{"type":"string","description":"0x-prefixed 20-byte EVM contract address."},"chain":{"type":"string","enum":["base","ethereum","polygon","arbitrum","optimism"],"description":"EVM chain. Default 'base'. Other supported: 'ethereum', 'polygon', 'arbitrum', 'optimism'."}},"required":["address"]},"input_example":{"address":"0x4200000000000000000000000000000000000006","chain":"base"},"output_example":{"address":"0x4200000000000000000000000000000000000006","chain":"base","is_verified":true,"name":"WETH","compiler_version":"v0.4.18+commit.9cf6e910","abi":[{"type":"function","name":"deposit","inputs":[],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"withdraw","inputs":[{"name":"wad","type":"uint256"}],"outputs":[],"stateMutability":"nonpayable"}],"source_code":"pragma solidity ^0.4.18;\ncontract WETH9 { ... }","license":"None","optimization":{"enabled":false,"runs":200},"constructor_arguments":"","proxy":false,"source":"https://etherscan.io"},"x402_payment_required":true,"x402_facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}