<< < 1 2 3 4 5 6 7 8 9 10 > >>   Sort: Rank

Verify Blockchain on the Channel
How to Verify Blockchain on the Channel? Since all transactions (changes of assets managed by chaincodes) are stored in the blockchain shared by all peers of the channel, you can use the "peer channel" CLI command to look at them. 1. Connect to CLI container: $ docker exec -it cli bash root@262918fd...
2020-02-20, 513👍, 0💬

Verify World State in CouchDB
How to Verify World State in CouchDB container? Since peer0.org1.example.com uses the couchdb container to store the world state, you can check the current states of all assets managed by the chaincode. 1. Get database name for the chaincode "fabcar": $ curl http://localhost:5984/_all_dbs ["_replica...
2020-02-20, 409👍, 0💬

Interact with "fabcar" Chaincode on CLI
How to Interact "fabcar" Chaincode on CLI? After you started the WYFA network properly, you will have the "fabcar" chaincode runing on "mychannel" on the peer0.org1.example.com peer container. You can now interact with the "fabcar" chaincode from the CLI container as shown below. 1. Connect to CLI c...
2020-02-20, 402👍, 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, 400👍, 0💬

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, 399👍, 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, 572👍, 0💬

blockfile_000000 - Blockfiles of Blockchain
What is blockfile_000000 Blockfiles of Blockchain? Blocks of a blockchain are stored in physical files. Since they are very static once created, there is no need to store them in database. Hyperledger Fabric combines multiple blocks into a single blockfile, and stores it in the /var/hyperledger/prod...
2020-02-07, 507👍, 0💬

Setup Node.js for WYFA Tests
How to Setup Node.js for WYFA (Write Your First Application) Tests? Before performing any Node.js SDK tests on the WYFA network, you need to setup the Node.js on your local host. 1. Make sure Node.js is installed: $ node --version v8.10.0 2. Install required packages: $ cd hyperledger-binaries/fabri...
2020-02-07, 485👍, 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, 480👍, 0💬

Hyperledger Fabric Network
Where to find tutorials on Hyperledger Fabric Network? Here is a list of tutorials to answer many frequently asked questions compiled by FYIcenter.com team on Hyperledger Fabric Network. Simplest Hyperledger Fabric Network Two-Organization Hyperledger Fabric Network Multiple Ledger Peers within Orga...
2020-02-07, 391👍, 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, 415👍, 0💬

Interfaces to Communicate with Ledger Peer
Where to find tutorials on Interfaces to Communicate with Ledger Peer? Here is a list of tutorials to answer many frequently asked questions compiled by FYIcenter.com team on Interfaces to Communicate with Ledger Peer. Main Interfaces to Communicate with Ledger Peer Download and Install Golang SDK D...
2020-01-29, 410👍, 0💬

Multiple Ledger Peers within Organization
Can I run multiple ledger peers in my organization on a multi-organization network? Yes, you can run multiple ledger peers in your organization on a multi-organization network. This will make the network more reliable to serve client applications of your organization. You can also replace the third ...
2020-01-29, 391👍, 0💬

What Is Hyperledger Fabric Query
What Is Hyperledger Fabric Query? A Hyperledger Fabric Query is a GET operation provided by a chaincode on a channel on a Hyperledger Fabric network to return the current state of a given asset. In order to perform a query operation, you need to prepare the following: Asset ID - Identifies the Asset...
2020-01-29, 374👍, 0💬

Hyperledger Fabric Process Flow
Where to find tutorials on Hyperledger Fabric Process Flow? Here is a list of tutorials to answer many frequently asked questions compiled by FYIcenter.com team on Hyperledger Fabric Process Flow. What Is Hyperledger Fabric Query   ⇒ What Is Hyperledger Fabric Query ⇐ Organization with CLI Admin To...
2020-01-29, 364👍, 0💬

Download and Install Golang SDK
How to download and install Golang SDK for Hyperledger Fabric? You can follow this tutorial to download and install Golang SDK for Hyperledger Fabric. 1. Download Golang SDK: $ export GOPATH=~/go $ echo $GOPATH /home/fyicenter/go $ go get github.com/hyperledger/fabric- sdk-go2. Verify Golang SDK pac...
2020-01-21, 405👍, 0💬

Main Interfaces to Communicate with Ledger Peer
What are Main Interfaces to Communicate with a ledger peer on a hyperledger fabric network? There are 3 Main Interfaces to Communicate with a ledger peer on a hyperledger fabric network. 1. Peer CLI - The Peer CLI is a Command Line Interface (CLI) provided as part of the Hyperledger Fabric distribut...
2020-01-21, 398👍, 0💬

Hyperledger Related Terminology
Hyperledger Related Terminology: Asset - An Asset is a data object with a unique identifier. The content of an asset can be anything from a simple numeric value to a complex data object. For example, an asset can represent a financial asset, like a bank account in a bank system. Blockchain - A Block...
2020-01-21, 392👍, 0💬

Download and Install Java SDK
How to download and install Java SDK for Hyperledger Fabric? You can follow this tutorial to download and install Java SDK for Hyperledger Fabric. 1. Install JDK 11: $ sudo add-apt-repository ppa:linuxuprising/java $ sudo apt-get update $ sudo apt-get install oracle-java11-installer $ java -version ...
2020-01-21, 381👍, 0💬

Contents of Hyperledger Fabric Binary Package
What contents are included in the Hyperledger Fabric Binary Package? Here is the directory list of the Hyperledger Fabric Binary Package: $ cd ~/hyperledger-binaries/fabric- samples$ ls -l -rw-rw-r-- 1 fyicenter 597 Apr 1 23:01 CODE_OF_CONDUCT.md -rw-rw-r-- 1 fyicenter 961 Apr 1 23:01 CONTRIBUTING.m...
2020-01-21, 352👍, 0💬

enrollAdmin.js - Enroll Admin to ca.example.com
What is the admin enrollment Node.js program enrollAdmin.js? Admin enrollment Node.js program enrollAdmin.js enrolls an user "admin" to ca.example.com. 1. View the enrollAdmin.js source code: $ cp ~/hyperledger-binaries/fabric- samples/fabcar/javascript$ more enrollAdmin.js /* * SPDX-License-Identif...
2020-01-04, 553👍, 0💬

"Failed to load gRPC binary module" Error
Why am I getting the "Failed to load gRPC binary module" error when running a Node.js client application? If your Node.js environment is out of sync, you will get the "Failed to load gRPC binary module" error as shown below: $ cp ~/hyperledger-binaries/fabric- samples/fabcar/javascript$ node enrollA...
2020-01-04, 540👍, 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, 463👍, 0💬

Reinstall Node.js Required Modules
How to reinstall Node.js Required Modules with the new version of npm? After installing the latest version of "node" and "npm" with "nvm", you can reinstall Node.js Required Modules to run Node.js client applications again the WYFA network. 1. Remove all files in "node_modules": $ cp ~/hyperledger-b...
2020-01-04, 446👍, 0💬

<< < 1 2 3 4 5 6 7 8 9 10 > >>   Sort: Rank