Explore Hyperledger Fabric through a complete set of APIs  

Create and deploy a blockchain network using Hyperledger Fabric SDK for Node.js

Last updated | By Ishan Gulhane


The Hyperledger Fabric SDK for Node.js is designed in an object-oriented programming style. Its modular construction enables application developers to plug in alternative implementations of key functions, such as crypto suites, state persistence store, and a logging utility. It provides an easy-to-use API to interact with a Hyperledger Fabric blockchain from a Node.js application. It provides a set of APIs to register and enroll new network clients, deploy new chaincodes to the network, and interact with existing chaincodes through chaincode function invocations and queries. This developer pattern demonstrates how to create and deploy the network.


Updated to support Hyperledger Fabric V1.1

Have you been putting off building a Hyperledger blockchain application because you didn’t know where or how to start? Procrastinate no longer because this developer pattern will help you get the process started.

Developers often have different preferences in the way they build applications. Some like using a GUI that steps through the process of building applications, while others like to do it via command-line interface; and Hyperledger supports both methodologies.

In this pattern, you will learn how to begin the process of building a Hyperledger blockchain application using the Hyperledger Fabric SDK API. The SDK supports Node and Python. This pattern focuses on the Node version. After you deploy the network, you will have created two certificate authorities, two peers, one orderer, and two CouchDB systems to hold the ledgers.


  1. Run a build script that launches the network in 3 steps.
  2. Ensure that all old Docker images are removed so you build the network from a clean system.
  3. Generate the cryptographic material. The Crypto configuration file (crypto-config.yaml) defines the identity of who is who. It tells peers and orderers what organization and domain they belong to. It then initializes a blockchain network or channel and services with an Orderer Genesis Block, which serves as the first chain block. Membership services are installed on each channel peer.
  4. Install the chaincode on the peers, and build the Docker images of the orderer, peers, channel, network.
  5. Launch the network.

Related Blogs

Jax 2018 – Just An Awesome Experience

What a week! From 23rd to 27th April our Berlin team attended the Jax conference in Mainz, Germany. We had such a great time sharing our fresh perspectives, in the form of a rousing keynote and two informative sessions. The concept of this annual event with over 2,000 participants, revolves around innovating with Java, architecture,...

Continue reading Jax 2018 – Just An Awesome Experience

CloudNativeCon and KubeCon are coming to Copenhagen!

With May just around the corner, mark your calendars for an exciting event, CloudNativeCon/KubeCon, in Denmark’s capital city of Copenhagen. Many of us in the Cloud Native community already visited this beautiful city for DockerCon EU last year and we’re excited to be able to take in all of the wonderful sites again this year....

Continue reading CloudNativeCon and KubeCon are coming to Copenhagen!

Live analytics with an event store fed from Java and analyzed in Jupyter Notebook

Event-driven analytics requires a data management system that can scale to allow a high rate of incoming events while optimizing to allow immediate analytics. IBM Db2 Event Store extends Apache Spark to provide accelerated queries and lightning fast inserts. This code pattern is a simple introduction to get you started with event-driven analytics. You can...

Continue reading Live analytics with an event store fed from Java and analyzed in Jupyter Notebook

Related Links


Check out the source code for Hyperledger Composer V0.19.3.


Learn about an iPhone app that combines location awareness, augmented reality, and a blockchain system that converts your footsteps into our own cryptocurrency: fitcoins.

Code pattern

Create a map server using MongoDB and Mongoose.

Deploy an asset-transfer app using blockchain

Learn the basics of chaincode and application development within a Hyperledger Fabric network by creating an asset-transfer app that enables you to transfer marbles between multiple owners.


Learn about integrating your blockchain with anything using Hyperledger Composer and NodeRed.