Used by query handler implementations to evaluate transactions on peers of their choosing.
Methods
-
<async> evaluate(peers)
-
Get query results from specified peers.
Parameters:
Name Type Description peers
Array.<Endorser> Returns:
- Type
- Promise.<Array.<(module:fabric-network.Query~QueryResponse|Error)>>
Type Definitions
-
QueryResponse
-
Type:
- Object
Properties:
Name Type Description isEndorsed
boolean True if the proposal was endorsed by the peer. status
number The status value from the endorsement. This attribute will be set by the chaincode. payload
Buffer The payload value from the endorsement. This attribute may be considered the query value if the proposal was endorsed by the peer. message
string The message value from the endorsement. This property contains the error message from the peer if it did not endorse the proposal.