khanghy3004 / Hyperledger-Fabric-k8s-with-REST-API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kubernetes Hyperledger Fabric with REST API

Prerequisites

Quickstart

Create a local Kubernetes cluster:

./network kind

Launch the network, create a channel, and deploy the smart contract :

./network up
./network channel create
./network chaincode deploy

Invoke and query chaincode:

./network chaincode invoke '{"Args":["InitLedger"]}' 
./network chaincode query '{"Args":["GetAllAssets"]}'

Access the blockchain with a REST API:

./network rest-easy

Tear down the test network:

./network down 

Tear down the cluster:

./network unkind

About


Languages

Language:TypeScript 65.9%Language:Shell 30.2%Language:Go 3.5%Language:Dockerfile 0.4%