Skip to main content
Glama
chainfetch

ChainFETCH MCP Server

Official
by chainfetch

get_smart_contract_info

Retrieve detailed information about any smart contract by providing its address. Analyze contract details, functions, and properties for blockchain development and auditing purposes.

Instructions

Get detailed information about a specific smart contract

Input Schema

NameRequiredDescriptionDefault
addressYesThe smart contract address

Input Schema (JSON Schema)

{ "properties": { "address": { "description": "The smart contract address", "type": "string" } }, "required": [ "address" ], "type": "object" }

Implementation Reference

  • The handler logic for the 'get_smart_contract_info' tool. It extracts the contract address from arguments and makes an API request to the ChainFETCH endpoint for smart contract details.
    case 'get_smart_contract_info': const { address: contractAddress } = args; return await this.makeRequest(`/api/v1/ethereum/smart-contracts/${contractAddress}`, 'GET', {}, null, token);
  • index.js:594-607 (registration)
    Registration of the 'get_smart_contract_info' tool in the tools list, including its schema for input validation (address string required).
    { name: 'get_smart_contract_info', description: 'Get detailed information about a specific smart contract', inputSchema: { type: 'object', properties: { address: { type: 'string', description: 'The smart contract address', }, }, required: ['address'], }, },
  • Input schema definition for the 'get_smart_contract_info' tool, specifying the required 'address' parameter.
    inputSchema: { type: 'object', properties: { address: { type: 'string', description: 'The smart contract address', }, }, required: ['address'], },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chainfetch/chainfetch-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server