Skip to content

chainstacklabs/freedom-dividend-chaincode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Freedom dividend chaincode

This project contains the web app that we will be spinnnig and connecting to the Hyperledger Fabric network deployed on Chainstack.

This is a two-part project:

Contract

  • Includes a sample JavaScript chaincode with 3 transactions:
    • optIn
    • optOut
    • querySSN

Web app

Backend

Highlights

  • Includes a bash script that automates peer chaincode lifecycle for installing and upgrading chaincodes.
  • Includes an API endpoint to bridge Node.js and Hyperledger Fabric v2 network using the bash script.
  • Includes a sample implementation of Hyperledger Fabric SDK v2.1 for creating gateway and wallets.

Build setup

By default, this application is configured to work out of the box with a Hyperledger Fabric v2 network deployed on Chainstack, but by doing minor changes you can easily switch to a network deployed on your local machine.

Frontend

Highlights

  • Automatically retrieves and displays the installed packages and chaincode from the backend.
  • Automatically generates forms based on installed chaincode.

Build setup