In this demo, take a developer journey to create a decentralized energy network and enable blockchain transactions using Hyperledger Composer.

In this video:

  • Raheel Zubairy, Software Engineer, IBM

Explore a decentralized energy network that implements blockchain transactions using Hyperledger Composer.

A decentralized energy network is one in which end users may also be producers of excess energy that they want to sell back into the market. In this example, you’ll learn how to use Hyperledger Composer to create a decentralized energy network of residents, banks, and utility companies in which residents exchange energy for coins with other residents and utilities and exchange coins for fiat currency with banks.

In this scenario, some residents of a neighborhood are producing energy through solar panels, wind farms, and geothermal setups and they sell excess energy to other residents. The transactions are based on an exchange of “coins” in each resident’s account. A pre-determined contract and rate handles the debit and credit transactions betweeen the customer and producer. You’ll see how each transaction is atomic and added to a blockchain ledger for trust and verification and learn how the network can be extended to include banks (so residents can convert coins into fiat currency, in this case, US dollars) and utility companies (so residents can sell excess energy to the wider market).

Hyperledger Composer is a set of APIs, a modeling language, and a programming model you can use to quickly define and deploy business networks and applications that allow participants to send transactions that exchange assets. The IBM Blockchain, based on open source Hyperledger® Fabric™ technology, is used to store the state of assets in asset registries while the consensus protocol ensures that transactions are validated by concerned organizations in the business network.

The Composer programming model is based on defining and deploying a business network definition, which contains a data model that defines the name and structure of assets, participants, and transactions in the business network. The business network also specifies transaction processor functions (written in ES5 JavaScript) that are automatically run on a Hyperledger® Fabric™ when transactions are submitted by clients.

Composer defines JavaScript APIs to submit transactions and to create, retrieve, update, and delete assets within asset registries.

Resources for you


Digitize transactions through a secured, shared, and replicated ledger.

Join The Discussion

Your email address will not be published. Required fields are marked *