def chaincode_query(self, chaincode_name, type=CHAINCODE_LANG_GO,
                        function="query",
                        args=["a"], id=1,
                        secure_context=None,
                        confidentiality_level=CHAINCODE_CONFIDENTIAL_PUB,
                        metadata=None):
        """
        {
          "jsonrpc": "2.0",
          "method": "query",
          "params": {
              "type": 1,
              "chaincodeID":{
                  "name":"52b0d803fc395b5e34d8d4a7cd69fb6aa00099b8fabed83504ac1c5d61a425aca5b3ad3bf96643ea4fdaac132c417c37b00f88fa800de7ece387d008a76d3586"
              },
              "ctorMsg": {
                 "function":"query",
                 "args":["a"]
              }
          },
          "id": 3
        }
        :return: json obj of the chaincode instance
        """
        return self._exec_action(method="query", type=type,
                                 chaincodeID={"name": chaincode_name},
                                 function=function, args=args, id=id,
                                 secure_context=secure_context,
                                 confidentiality_level=confidentiality_level,
                                 metadata=metadata)
def chaincode_query ( self , chaincode_name , type = CHAINCODE_LANG_GO , function = "query" , args = [ "a" ] , id = 1 , secure_context = None , confidentiality_level = CHAINCODE_CONFIDENTIAL_PUB , metadata = None ) : return self . _exec_action ( method = "query" , type = type , chaincodeID = { "name" : chaincode_name } , function = function , args = args , id = id , secure_context = secure_context , confidentiality_level = confidentiality_level , metadata = metadata )
{
          "jsonrpc": "2.0",
          "method": "query",
          "params": {
              "type": 1,
              "chaincodeID":{
                  "name":"52b0d803fc395b5e34d8d4a7cd69fb6aa00099b8fabed83504ac1c5d61a425aca5b3ad3bf96643ea4fdaac132c417c37b00f88fa800de7ece387d008a76d3586"
              },
              "ctorMsg": {
                 "function":"query",
                 "args":["a"]
              }
          },
          "id": 3
        }
        :return: json obj of the chaincode instance