{"uid":"cap_SKhAAVSxXEZ4Zd5iVy1v1","slug":"saylor-innovations-smart-contract-source-abi-summary-91e5e6ad","name":"Saylor Innovations Smart Contract Source & ABI Summary","description":"Verified smart contract source and ABI summary from Blockscout - compiler, proxy, read and write function counts, payable functions and owner-style functions to review","url":"https://saylorinnovations.com/api/evm/contract-source?utm_source=zero.xyz","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"],"type":"string"},"queryParams":{"type":"object","required":["address"],"properties":{"chain":{"type":"string","description":"ethereum (default), base, optimism, arbitrum, polygon, gnosis"},"address":{"type":"string","description":"Contract 0x address"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["chain","address","abi_summary"],"properties":{"name":{"type":"string","description":"Name"},"note":{"type":"string","description":"Caveat or context for reading the result"},"chain":{"type":"string","description":"Blockchain the data is for"},"source":{"type":"string","description":"Data source the values come from"},"address":{"type":"string","description":"Account or contract address"},"license":{"type":["string","null"],"description":"License identifier"},"compiler":{"type":["string","null"],"description":"Compiler version used"},"language":{"type":["string","null"],"description":"Language"},"verified":{"type":"boolean","description":"True when the source code is verified on the explorer"},"main_file":{"type":["string","null"],"description":"Main file"},"proxy_type":{"type":["string","null"],"description":"Proxy type"},"abi_summary":{"type":"object","properties":{"events":{"type":["number","null"],"description":"List of events"},"functions":{"type":["number","null"],"description":"Number of functions in the ABI"},"read_functions":{"type":["number","null"],"description":"Read functions"},"has_constructor":{"type":["boolean","null"],"description":"True when this has constructor"},"write_functions":{"type":["number","null"],"description":"Write functions"},"payable_functions":{"type":["array","null"],"description":"Payable functions"},"write_function_signatures":{"type":["array","null"],"description":"Write function signatures"}},"description":"Abi summary"},"evm_version":{"type":["string","null"],"description":"Evm version"},"verified_at":{"type":["string","null"],"description":"Verified at (UTC unless a time zone is given)"},"explorer_url":{"type":"string","description":"Explorer URL"},"optimization":{"type":["object","null"],"properties":{"runs":{"description":"Optimiser runs setting"},"enabled":{"type":["boolean","null"],"description":"True when compiler optimisation was on"}},"description":"Optimizer settings: enabled flag and runs"},"source_chars":{"type":"number","description":"Source chars"},"source_files":{"type":["number","null"],"description":"Source files"},"source_excerpt":{"type":["string","null"],"description":"Source excerpt"},"implementations":{"type":["array","null"],"description":"Implementation contracts when the address is a proxy"},"constructor_args":{"type":["string","null"],"description":"Constructor args"},"privileged_looking_functions":{"type":"array","description":"Privileged looking functions"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.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_ib9dO1raSI95S4UnyKGZt","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":"Returns verified smart contract source metadata and ABI summary (compiler, proxy type, read/write/payable function counts) from Blockscout for a given EVM contract address","exampleAgentPrompt":"Can you pull up the verified contract source info and ABI summary for 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 on Ethereum — I want to see the compiler version, proxy type, and how many read vs write functions it has?","exampleUseCases":[{"title":"Pre-audit contract function review","prompt":"Before I interact with this DeFi protocol, can you check the smart contract at 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 on Ethereum and tell me how many payable and owner-style functions it exposes?"},{"title":"Proxy contract detection on Base","prompt":"Is the contract at 0x4200000000000000000000000000000000000010 on Base a proxy contract? If so, what proxy type is it and is the source verified?"},{"title":"Arbitrum contract language and compiler check","prompt":"I need to know what compiler version and language were used for the contract at 0x912CE59144191C1204E64559FE8253a0e49E6548 on Arbitrum — and is the source verified on Blockscout?"}],"resultDescription":"A JSON object containing the contract's verification status, compiler version, programming language, license, main file name, proxy type, and an ABI summary object with counts of total functions, read functions, write functions, payable functions, owner-style functions, events, and whether a constructor is present. Also includes the chain and data source attribution.","failureModes":["Contract address not found or not deployed on the specified chain — returns unverified or empty result","Invalid 0x address format — likely returns an error or empty response","Contract exists but source is not verified on Blockscout — verified field will be false with limited ABI data","Unsupported chain name supplied — may default to Ethereum or return an error","Network or upstream Blockscout API outage — service unavailable"],"whenToPreferThis":"Use this endpoint when you need a quick, structured summary of a smart contract's ABI and source metadata without parsing raw Solidity files or querying Blockscout directly. It is ideal for pre-interaction security reviews, automated contract auditing pipelines, or agent workflows that need to classify contracts by function type (read/write/payable) across multiple EVM chains including Ethereum, Base, Optimism, Arbitrum, Polygon, and Gnosis.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T12:56:42.610Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-smart-contract-source-abi-summary-91e5e6ad"}