Network configuration

The first step in writing middleware is collecting all the configuration information necessary to identify and connect to the various elements of the network we created and launched in the previous section. It is useful, especially when writing code in JavaScript, to express such configurations in JSON format. In our sample code, the config.json file serves this purpose. This file contains the description of a network, whose attributes are contained in the trade-network object. Each property of this object describes the configuration of each unique organization that is part of the network, except for a property called the orderer, which simply refers to the orderer node. (Note: this is sufficient for our simple network ...

Get Blockchain Development with Hyperledger now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.