Build your first blockchain application  

Build a complete blockchain application on Hyperledger Fabric using Hyperledger Composer

Last updated | By Ishan Gulhane

Description

Blockchain is an open, secure, distributed ledger that verifiably and permanently records transactions between parties. This composite developer journey, comprising multiple more granular developer journeys, will get you started with building a Hyperledger Fabric blockchain application.

Overview

Blockchain is changing the way businesses conduct transactions. This secure, distributed, and open technology is lowering costs, speeding up processes, and building a new level of trust in secure interactions. When something as big as blockchain emerges, developers who understand and can implement the technology are in the driver’s seat. But first you have to learn it.

For anyone wondering how to get started with blockchain, this developer journey is for you. This journey is a composite, comprising a set of granular developer journeys that take you through the process of building a working blockchain application step by step.

Start with the first journey in the series, Build a blockchain network, in which you’ll learn how to create your first blockchain network using Hyperledger Composer. You’ll create a Business Network Archive (BNA) file that enables you to define a model; for example, the participants, tradeable assets, and allowable transactions. You’ll then deploy the network on Hyperledger Fabric, the blockchain framework implementation hosted by the Linux Foundation. For this journey, you’ll run Hyperledger Fabric locally.

Next, move on to Create and execute blockchain smart contracts. As the name suggests, you’ll build a smart contract that defines the “who” and “what” with respect to managing transactions. You’ll learn how to add multiple participants and add access control to your blockchain application by creating an interactive, distributed, product auction demo network. You’ll get an introduction to access control lists, which control sharing and privacy and are automatically enforced by the Hyperledger Fabric Composer runtime.

When you complete the developer journeys in this series, you’ll discover how useful a tool Hyperledger Composer can be. It gives you the ability to quickly model your current business network, including your existing assets and the transactions related to them.

This is your chance to climb on the blockchain train and build the skills that every business will need. Watch for additions to this blockchain series. Work your way through the full composite developer journey and make yourself indispensable!

Flow

  1. Build a blockchain network
    1. Install the Network Dependancies: cryptogen, configtxgen, configtxlator, peer
    2. Configure the network:
      i) Generate the network artifacts.
      ii) Start the network.
  2. Create blockchain smart contracts
    1. Install and instantiate the chaincode.
    2. Query and invoke the chaincode.
    3. View transactions and chaincode logs.

Related Patterns

Build a blockchain network

Get started with blockchain technology by learning how to build a blockchain network using Hyperledger Composer.


Create and execute blockchain smart contracts

Use the Hyperledger Composer framework to create and execute smart contracts within a blockchain application built on Hyperledger Fabric.


Related Blogs

Related Links