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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.