Blockscout MCP

inspect_contract_code

Inspects a verified contract's source code or metadata.

Remote blockscout/mcp-server

Other tools also called inspect_contract_code? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "address": {
      "type": "string",
      "title": "Address",
      "description": "The address of the smart contract."
    },
    "chain_id": {
      "type": "string",
      "title": "Chain Id",
      "description": "The ID of the blockchain."
    },
    "file_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "File Name",
      "default": null,
      "description": "The name of the source file to inspect. If omitted, returns contract metadata and the list of source files."
    }
  }
}