query_chaincode
Query Hyperledger Fabric chaincode functions with arguments to retrieve blockchain data without modifying the ledger.
Instructions
Query the Hyperledger Fabric chaincode (read-only)
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": {
"function": "<function>",
"args": "<args>"
},
"name": "query_chaincode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| function | Yes | The chaincode function to query | |
| args | Yes | Arguments to pass to the chaincode function |