< 1 2 3 4 5 6 7 > >>   Sort: Date

Read Block Data in Blockchain
How to Read Block Data from a Blockchain? The block data from a blockchain uses a binary format. You need to use the "configtxgen -inspectBlock" command parse it to JSON format. 1. Get the newest block from the blockchain: $ docker exec -it cli bash root@262918fdcbc0:/opt/gopath/ src/github.com/hyper...
2020-02-20, 1147👍, 0💬

Download Hyperledger Fabric Source Code
How to download Hyplerledger Fabric source code on Ubuntu? You can follow this tutorial to download Hyplerledger Fabric source code on Ubuntu: 1. Set up Go home path. And add the command to your shell initial script, ~/.bashrc, so you don't have to do it again in future logins. $ export GOPATH=$HOME...
2020-05-15, 1112👍, 0💬

fabcar.go - The "fabcar" Chaincode
What is the fabcar.go source code file? File fabcar.go contains the source code the "fabcar" chaincode (or Smart Contract). A copy of fabcar.go file is available is the /opt/gopath/src directory on the "cli" container. You can open and read it. 1. Copy fabcar.go from cli container: $ docker cp cli:/...
2020-02-20, 1110👍, 0💬

"docker-compose up" Command - Start the Network
How to run "docker-compose up" command to deploy and start containers to run BYFN (Build Your First Network)? You can follow this tutorial to run "docker-compose up" command to deploy and start containers to run BYFN. $ cd hyperledger-binaries/fabric-sa mples/first-network$ docker-compose -f docker-...
2020-10-20, 1109👍, 0💬

submit-transaction.js - Submit Chaincode Transaction
How to write a Node.js script to submit a transaction defined in the Invoke method of a chaincode? Here is sample Node.js script, submit-transaction.js, that uses a given user identity from the local wallet to submit a transaction on chaincode. /* Copyright (c) FYIcenter.com */ 'use strict'; const {...
2019-04-22, 1084👍, 0💬

Install Hyperledger Fabric Binary Package
How to Install Hyperledger Fabric Binary Package on Ubuntu? I don't want to download the source code and build the binary. You can follow this tutorial to Install Hyperledger Fabric Binary Package on Ubuntu. 1. Create the download local directory: $ mkdir -p hyperledger-binaries/fabric-sa mples$ cd ...
2020-05-15, 1083👍, 0💬

Two-Organization Hyperledger Fabric Network
What is the simplest Hyperledger Fabric Network for two organizations? The simplest Hyperledger Fabric Network for two organizations consists of 3 systems: an orderer and a peer managed by first organization, and another peer managed by the second organization. If the second organization does not fu...
2020-01-29, 1078👍, 0💬

Install Chaincode on BYFN Peers
How to install chaincode on BYFN peers? You can follow this tutorial to install chaincode on BYFN peers manually. 1. Verify the chaincode source file on the BYFN CLI container: $ docker exec -it cli bash bash-4.4# bash-4.4# echo $GOPATH /opt/gopath bash-4.4# ls -l $GOPATH/src/github.com/chainco de/ch...
2019-04-13, 1077👍, 0💬

Query CouchDB Container API Directly
How to query CouchDB Container API directly? If you are running BYFN (Build Your First Network) with the CouchDB option, the World State of each peer node is stored a CouchDB server running as Docker container. The CouchDB server supports a REST API interface at the local port 4369, which is mapped ...
2020-06-08, 1074👍, 0💬

Watch "orderer" Container Log
How to watch the log file of the "orderer" Container? The "orderer" Container plays an important role in a Hyperledger Fabric network. You can follow this tutorial to watch its log file: 1. Set up a new terminal on the hosting system to follow the log file of the "orderer" container: $ docker logs -...
2020-07-07, 1073👍, 0💬

registerUser.js - Register User to ca.example.com
What is the user registration Node.js program registerUser.js? User registration Node.js program registerUser.js registers an user "user1" to ca.example.com. 1. View the registerUser.js source code: $ cp ~/hyperledger-binaries/fabric- samples/fabcar/javascript$ more registerUser.js /* * SPDX-License...
2020-01-04, 1073👍, 0💬

"byfn.sh down" - Shut Down BYFN Network
How to run "byfn.sh down" to shut down the BYFN Network? You can follow this tutorial to run "byfn.sh down" to shut down the BYFN Network. The "./byfn.sh down" command automatically generates the configuration again, deploys/starts all containers to the Docker Engine, and runs a set of chaincode tes...
2020-05-05, 1056👍, 0💬

Fabric CA User’s Guide
Where is the Fabric CA User’s Guide? The Fabric CA User’s Guide is provided at: hyperledger-fabric-ca.readthed ocs.io/en/release-1.4/users-gu ide.html. The Fabric CA User’s Guide provides information on the following topics: Overview Getting Started Prerequisites Install Explore the Fabric ...
2019-10-18, 1039👍, 0💬

"docker rmi" - Remove Docker Images
How to run Docker images with the "docker rmi" command? If some Hyperledger Fabric scripts failed to remove Docker images, you can remove them manually with the "docker rmi" command. 1. Identify the image with REPOSITORY and TAG with the "docker images" command: $ docker images REPOSITORY TAG CREATE...
2020-04-14, 1037👍, 0💬

Fabric CA Integration with Fabric Peers
How Fabric CA (Certificate Authority) Server is integrated with Hyperledger Fabric peers? The diagram below illustrates how the Hyperledger Fabric CA server fits into the overall Hyperledger Fabric architecture. As you can see: You can run a single Fabric CA server to serve one organization. You can...
2019-10-27, 1026👍, 0💬

Deploy Peer with Default Configuration
How to Deploy the Peer Docker Image with the Default Configuration? You can follow this tutorial to deploy the Peer Docker Image with the Default Configuration. 1. Create a new Docker Compose YAML file, docker-compose-peer.yaml: $ cd fabric-peer $ vi docker-compose-peer.yaml # Copyright (c) FYIcente...
2019-05-10, 1025👍, 0💬

Node.js SDK and Client Application
What is Node.js SDK and how to use it to write client applications? Hyperledger Fabric Node.js SDK is a set of libraries that allows you to write client applications to interact with chaincode in Node.js language. A Hyperledger Fabric network can be viewed as virtual operating system. Once it is up ...
2020-02-07, 1019👍, 0💬

Simplest Hyperledger Fabric Network
What is the simplest Hyperledger Fabric Network? The simplest Hyperledger Fabric Network consists of 2 systems, an orderer and a peer, running 1 channel with 1 chaincode. But ledger (Blockchain and World State) is not distributed. To improve reliability, we can add a second ledger peer to the networ...
2020-02-07, 1015👍, 0💬

Deploy Orderer with Default Configuration
How to Deploy the Orderer Docker Image with the Default Configuration? You can follow this tutorial to deploy the Orderer Docker Image with the Default Configuration. 1. Create a new Docker Compose YAML file, docker-compose-default.yaml: $ cd fabric-orderer $ cp docker-compose-orderer.yaml docker-co...
2019-05-14, 1014👍, 0💬

What Is Smart Contract
What Is Smart Contract? Smart Contract was originally introduced by Nick Szabo to digitally facilitate, verify, or enforce the negotiation or performance of a contract between parties. Today, smart contract is used to represent any executable code deployed in a distributed ledger application. The di...
2022-02-19, 1003👍, 0💬

Create PaperNet Log Console
How to Create PaperNet Log Console using the "logspout" command? If you are the administrator from MagnetoCorp and want to Create Log Console to monitor PaperNet Hyperledger Fabric network, you can follow this tutorial. 1. Create a new terminal window and run the monitordocker.sh script under the ma...
2019-12-19, 1001👍, 0💬

"configtxgen" Command - Build genesis.block
How to run "configtxgen" command to build the orderer genesis block for BYFN (Build Your First Network)? You can follow this tutorial to run "configtxgen" command to build Orderer Genesis Block for BYFN. The "configtxgen" command file is located in the ../bin directory. It takes the configtx.yaml fi...
2020-10-20, 998👍, 0💬

Start Hyperledger Composer Playground
How to Start the Hyperledger Composer Playground? You can follow this tutorial to start the Hyperledger Composer Playground. 1. Run Web browser and go to: composer-playground.mybluemix. net. You see the welcome page. 2. Click on "Let's Blockchain!". You see the playground home page. 3. Now you can s...
2021-12-28, 993👍, 0💬

teardown.sh - Teardown basic-network
How to run teardown.sh script to Teardown the Hyperledger Fabric example network, basic-network? You can follow this tutorial to run teardown.sh script to Teardown the Hyperledger Fabric example network, basic-network. 1. Run teardown.sh script to remove containers and their images related to the ba...
2020-04-25, 984👍, 0💬

< 1 2 3 4 5 6 7 > >>   Sort: Date