{"name":"contract-source","description":"Returns verified source code and ABI for any deployed contract on Ethereum, Base, Optimism, Arbitrum, or Polygon. Includes is_verified, contract name, compiler version, parsed ABI, full source, license, optimizer settings, constructor args, and proxy implementation address. Use it as an Etherscan source lookup, contract ABI fetcher, or Solidity source lookup.","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"}