Published in


Script to set up Hyperledger Fabric composer multi-organization network !!

This article series consists of two parts:

Prerequisites:- You should be familiar with the basic concepts of Hyperledger composer.You have tried this official tutorial by hyperledger composer to setup a multi org network.

Setting up the multi org network while following the documentation is a good idea, If you are setting it up for first time.But it is more time consuming at the same time.Once you get a good understanding of the concepts ,you should try to automate the process for the next time, for now I’ve already done it for you.

Steps to set up the multi org network for hyperledger fabric composer:-

Ignore Step 1 to 6 if you have already downloaded the fabric samples and are successfully running the first-network sample on your machine.

Step 1:- Clear the existing fabric network

cd ~/fabric-dev-servers

Step 2: Clone the fabric-samples network:-

git clone -b issue-6978 https://github.com/sstone1/fabric-samples.git

Step 3:-

cd fabric-samples

Step 4:-

curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0 1.1.0 0.4.6

Step 5:-

cd first-network

Step 6: Generate the certificates and start the network:

./byfn.sh -m generate

./byfn.sh -m up -s couchdb -a

Step 7:- Automation begins:-

You should Create a connectionProfile.json file in your home directory and paste the following connection profile script in connectionProfile.json file:-

This script only does automation for two orgs network .But you can enhance it according to your needs.

That’s it,In next part of this tutorial .I will give you another script to automate the process of installing and updating the composer business network on the underlying fabric network. Thanks for reading.Keep Exploring. :)

In case of doubts and suggestions the comments are open. See ya !

Looking for blockchain solutions (hyperledger, ethereum, Stellar, Corda), token sale (ethereum, neo, stellar) or Security Auditing? Get in touch with QuillHash.



Delivering Enterprise-grade blockchain technology to leading companies worldwide.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Himanshu Chawla

Full stack developer (Ethereum, hyperledger, aws, react js, node js, golang)