contract_query
Run any CosmWasm smart query on a Terra Classic contract address and receive raw JSON results. Provide contract and query message to retrieve on-chain data directly.
Instructions
Generic CosmWasm contract query passthrough: run any {"smart":{...}} query against a terra1 contract and return raw JSON.
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": {
"contract": "<contract>",
"query": "<query>"
},
"name": "contract_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | query msg, e.g. {"balance":{"address":"terra1..."}} | |
| contract | Yes | terra1... contract address |