Hyperledger Explorer is a user friendly web application for hyperleger.User can query specific blocks and transactions.
for more inforamation please visit our youtube channel
https://www.youtube.com/edit?o=U&video_id=EvICyArbFSs
www.rihusoft.com
2. Hyperledger Explorer
Hyperledger Explorer is a user friendly web application for hyperleger.
It provides a dashboard for hyperledger to view/query about blocks ,
transactions ,statistics and smartcontracts available on network.
It will give information about Peerlist, Chaincode list.
It provides an excellent UI.
3. Installation Setup
Requirements:
Hyperledger Explorer works with Hyperledger Fabric 1.0. Install the following
software dependencies to manage fabric network.
Run npm install in blockchain-explorer folder.
o Nodejs 6.9.x or greater
o Mysql 5.7 or greater
o Docker 17.06.2-ce or greater
o Docker-compose 1.14.0 or higher
Setup mysql database to save transactions , blocks and
chaincodes etc which are displayed in the dashboard.
4. Terminology
● Channel : It is a private “subnet” of communication between two or more
specific network members.
● Peer : Each node(a computer connected to network) is a peer.
● Block:An ordered set of transactions that is cryptographically linked to the
preceding block(s).
● Hash : A unique code.
● Smart Contract : It is self-executing contracts with the terms of the agreement
between buyer and seller being directly written into lines of code.
5. Information about a block
User can query for specific block and transaction
The information about a block include
Previous hash.
Data hash.
Hash code of transactions.
6. How it works
Run any chaincode in fabric using CLI(Command Line Interpreter).
Modifications in config.json file.
-change fabricpath in tls_cacerts,key,cert to chaincode location.
-If you are connecting to a non TLS fabric peer, please modify the protocol
(grpcs->grpc) and port (9051-> 9050) in the peer url and remove the
tls_cacerts.
Then run the start.sh file.
Then access the blockchain explorer UI in localhost by webisite
“localhost:8080”.
7. Running an Example Network
● Running First-network as an example.
● Run byfn.sh in fabric-samples/first-network.
● Make all configuration changes in config.json file of blockchain-explorer.
● Then run start.sh in blockchain-explorer.
● Then transactions will be updated in UI page.
8. Updation of Transactions
➢ When we invoke transactions in chaincode, then explorer page will be updated.
➢ Transactions and blocks will be updated.
➢ When connected to multiple peers, if any peer has changed transactions then
web page will be updated with new changes.