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
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | The smart contract address |
Input Schema (JSON Schema)
{
"properties": {
"address": {
"description": "The smart contract address",
"type": "string"
}
},
"required": [
"address"
],
"type": "object"
}
Implementation Reference
- index.js:771-773 (handler)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'], }, },
- index.js:597-606 (schema)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'], },