Class: Query

Query

This class represents a Query definition. This class allows an application to contain all proposal attributes and artifacts in one place during a query.

new Query(chaincodeId, channel)

Construct a Proposal object.
Parameters:
Name Type Description
chaincodeId string The chaincode this proposal will execute
channel Channel The channel of this proposal
Returns:
The Proposal instance.
Type
Proposal

Methods


<async> send(request)

Send a signed transaction query proposal
Parameters:
Name Type Description
request SendProposalRequest options
Returns:
The results of sending
Type
ProposalResponse

toString()

return a printable representation of this object