query-contract-state
Query smart contract state on the Osmosis blockchain to retrieve current data and verify contract functionality.
Instructions
Queries the state of a smart contract
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"contractAddress": "<contractAddress>",
"queryMsg": "<queryMsg>"
},
"name": "query-contract-state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contractAddress | Yes | The contract address to query | |
| queryMsg | Yes | The query message as a JSON object |