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
Name | Required | Description | Default |
---|---|---|---|
contractAddress | Yes | Address of the smart contract to query | |
networkName | Yes | Name of the network to use - must first check what networks are available through the networks resource | |
queryMsg | Yes | The 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"
}