hfc.fabric_network.network

Module Contents

Classes

Network(gateway, channel)

A Network represents the set of peers in a Fabric network.

hfc.fabric_network.network.consoleHandler
hfc.fabric_network.network._logger
class hfc.fabric_network.network.Network(gateway, channel)

Bases: object

A Network represents the set of peers in a Fabric network. Applications should get a Network instance using the gateway’s getNetwork method.

async __init_internal_channel(self, discovery)

Initialize the channel if it hasn’t been done :param discovery: must include requestor :return:

async _initialize(self, discover=None)

Initialize this network instance :param discover: :return:

get_contract(self, chaincode_id)