MantraChain MCP Server

by allthatjazzleo
Verified

contract-query

Execute read-only functions on smart contracts to retrieve data without altering the blockchain state. Specify the contract address, network, and query message for precise results.

Instructions

Query a smart contract by executing a read-only function

Input Schema

NameRequiredDescriptionDefault
contractAddressYesAddress of the smart contract to query
networkNameYesName of the network to use - must first check what networks are available through the networks resource
queryMsgYesThe query message to send to the contract as a JSON object

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "contractAddress": { "description": "Address of the smart contract to query", "type": "string" }, "networkName": { "description": "Name of the network to use - must first check what networks are available through the networks resource", "type": "string" }, "queryMsg": { "additionalProperties": {}, "description": "The query message to send to the contract as a JSON object", "type": "object" } }, "required": [ "contractAddress", "queryMsg", "networkName" ], "type": "object" }
ID: p4x6v48lbj