Contracts
Inspect contract code
Inspects a verified contract's source code or metadata.
get/inspect_contract_code
Request
- Base URLhttps://mcp.blockscout.com/v1
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
chain_idstring required
The ID of the blockchain
addressstring required
The address of the smart contract
file_namestring
The name of the source file to inspect. If omitted, returns contract metadata and the list of source files.
Response
Contract source code or metadata
Changes
No recorded changes to this operation across all 15 revisions of this API.