Exploring Hyperledger Fabric and Hyperledger Explorer

Hyperledger Fabric network with two channels
Figure 1: Hyperledger Fabric network with two channels

Local Environment

Figure 2: Default test network
curl -sSL https://bit.ly/2ysbOFE | bash -s
$ cd fabric-samples/test-network
$ ./network.sh up createChannel
//this is now in same folder as fabric-samples
$ mkdir hlf-explorer
$ cd hlf-explorer
$ wget https://raw.githubusercontent.com/hyperledger/blockchain-explorer/main/examples/net1/config.json
$ wget https://raw.githubusercontent.com/hyperledger/blockchain-explorer/main/examples/net1/connection-profile/test-network.json -P connection-profile
$ wget https://raw.githubusercontent.com/hyperledger/blockchain-explorer/main/docker-compose.yaml
$ cp -r ../fabric-samples/test-network/organizations .
$ export EXPLORER_CONFIG_FILE_PATH="./config.json"
$ export EXPLORER_PROFILE_DIR_PATH="./connection-profile"
$ export FABRIC_CRYPTO_PATH="./organizations"
$ docker-compose up -d
Containers for 2 peers, 1 orderer and Hyperledger Explorer
Figure 4: Containers for 2 peers, 1 orderer and Hyperledger Explorer
HLF Explorer Dashboard
Figure 4: HLF Explorer Dashboard

Cleanup

docker-compose down -v
./network down

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store