Open In App

Hyperledger Explorer in Blockchain

Hyperledger Explorer is an open-source tool developed by the Linux Foundation and hosted by the Hyperledger project. It provides a web-based interface for viewing, querying, and analyzing data from a blockchain network powered by Hyperledger Fabric. The tool offers a number of features for tracking and analyzing the operation of the blockchain network, including the ability to view transaction history, smart contract information, network node information, and user data.

What is Hyperledger Explorer?

Hyperledger Explorer is designed to work with different Hyperledger Fabric versions and can connect to both single and multiple blockchain networks. It allows authorized users to view the information of transactions and blocks, trace the history of assets, and generate custom reports for analysis purposes. Additionally,  



Why Do You Need Hyperledger Explorer?

Hyperledger Explorer is a powerful tool that provides an easy way to monitor, visualize, and analyze blockchain networks based on the Hyperledger Fabric platform. Here are some reasons why you might need Hyperledger Explorer:

Feature of Hyperledger Explorer

Hyperledger Explorer provides various features to explore and monitor the Hyperledger Fabric blockchain network. Some of the main features of Hyperledger Explorer are:



Architecture of Hyperledger Explorer

The architecture of Hyperledger Explorer comprises three major components:

1. User Interface

This component provides a web-based user interface that displays data in a meaningful and easy-to-understand way. Users can interact with the data by performing various actions like querying the data, filtering the data, and viewing the transaction details.

2. REST API Server

This component provides a REST API interface that allows clients to communicate with the Hyperledger Explorer server. The REST API server exposes endpoints that enable users to retrieve data from the blockchain network.

3. Database

This component stores data related to the blockchain network, including transactions, blocks, peers, and channels. Hyperledger Explorer supports two types of databases: LevelDB and CouchDB.

The architecture of Hyperledger Explorer follows a modular design approach that allows for easy extensibility and customization. The modular design approach also enables Hyperledger Explorer to be deployed in a variety of environments, including cloud-based, on-premise, and hybrid architectures.

Hyperledger Explorer uses the Fabric Node SDK to connect to the Hyperledger Fabric network and retrieve data. The Node SDK provides a set of APIs that enable Hyperledger Explorer to interact with the Fabric network and retrieve data related to blocks, transactions, peers, and channels.

Step-By-Step Installation of Hyperledger Explorer

Here are the step-by-step instructions to install Hyperledger Explorer:

Prerequisites:

Docker and Docker-compose

Node.js and NPM

Git

Step 1: Clone the Hyperledger Explorer Repository: 

Open the terminal and clone the Hyperledger Explorer repository using the following command:

git clone https://github.com/hyperledger/blockchain-explorer.git

Step 2: Navigate to the Hyperledger Explorer Directory:

Once the repository is cloned, navigate to the blockchain-explorer directory using the following command:

cd blockchain-explorer

Step 3: Checkout to the Latest Release:

Check the latest release version of Hyperledger Explorer on the release page on GitHub. Checkout to the latest release using the following command:

git checkout v<latest_release>

Step 4: Create Configuration Files:

Copy the example configuration files to the main directory:

cp config.json.example config.json

cp connection-profile/first-network.json connection-profile/connection-profile.json

Step 5: Configure the Connection Profile:

Edit the connection-profile.json file to configure the connection profile. The connection profile contains related information about the network and nodes that Hyperledger Explorer will connect to. Ensure that the network information in the connection profile is correct.

Step 6: Install Dependencies:

Install the dependencies required for Hyperledger Explorer using the command:

npm install

Step 7: Generate Necessary Certificates:

To enable SSL/TLS for the web server, and generate the necessary certificates use the following command:

cd app/test

./generateCertificates.sh

Step 8: Start the Blockchain Network:

Before starting Hyperledger Explorer, ensure that the blockchain network is up and running.

Step 9: Start the Hyperledger Explorer:

To start Hyperledger Explorer, run the following command:

./start.sh

Step 10: Access Hyperledger Explorer:

Once started, access Hyperledger Explorer by opening the web browser and navigating to the URL http://localhost:8080/. Now, you have successfully installed Hyperledger Explorer.

Benefits of Hyperledger Explorer

Hyperledger Explorer is a powerful tool for blockchain developers and business users alike. Here are some of its key uses:

Limitations of Hyperledger Explorer

Some of the limitations of Hyperledger Explorer include:


Article Tags :