Class: Query

fabric-network~ Query

Describes a transaction to be evaluated on a specified set of peers. Used by query handler implementations to evaluate transactions on peers of their choosing.

new Query()

Methods


<async> evaluate(peers)

Evaluates the query on the specified peers.
Parameters:
Name Type Description
peers Array.<ChannelPeer> The peers to query
Returns:
Object with peer name keys and associated values that are either Buffer or Error objects.
Type
Object.<String, (Buffer|Error)>