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 peersArray.<Endorser> Returns:
- Type
- Promise.<Array.<(module:fabric-network.Query~QueryResponse|Error)>>
Type Definitions
-
QueryResponse
-
Type:
- Object
Properties:
Name Type Description isEndorsedboolean True if the proposal was endorsed by the peer. statusnumber The status value from the endorsement. This attribute will be set by the chaincode. payloadBuffer The payload value from the endorsement. This attribute may be considered the query value if the proposal was endorsed by the peer. messagestring The message value from the endorsement. This property contains the error message from the peer if it did not endorse the proposal.