15850

How to integrate HyperLedger composer Business network with Hyperledger explorer?

Question:

I have built Business network using HyperLedger composer. Now, I want to use HyperLedger explorer for my solution? I didnt find any help on the same. I have downloaded all the Hyperledger explorer from Git, I am stuck in configuring the Config file? I am not sure, which config file is being referred in the below link? <a href="https://github.com/hyperledger/blockchain-explorer/blob/master/README.md" rel="nofollow">https://github.com/hyperledger/blockchain-explorer/blob/master/README.md</a>

Answer1:

I think that the file structure has been changed recently, but the reference to the config file in the documentation has not changed. I have just tested the latest Hyperledger Explorer with Composer v0.19.9 and the development Fabric provided with the Composer tools. The version number of Hyperledger Explorer in the package.json is 3.2.

The config file that I modified is: blockchain-explorer/app/platform/fabric/config.json

{ "network-config": { "org1": { "name": "Org1", "mspid": "Org1MSP", "peer1": { "requests": "grpc://127.0.0.1:7051", "events": "grpc://127.0.0.1:7053", "server-hostname": "peer0.org1.example.com" }, "admin": { "key": "/home/rob/fabric-dev-servers/fabric-scripts/hlfv11/composer/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore", "cert": "/home/rob/fabric-dev-servers/fabric-scripts/hlfv11/composer/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts" } } }, "channel": "composerchannel", "orderers":[ { "mspid": "OrdererMSP", "server-hostname":"orderer.example.com", "requests":"grpc://127.0.0.1:7050" } ], "keyValueStore": "/tmp/fabric-client-kvs", "configtxgenToolPath": "fabric-path/fabric-samples/bin", "eventWaitTime": "30000", "license": "Apache-2.0", "version": "1.1" }

Note in particular that I changed the

<ol><li>name of the org ( "name": "Org1" ), </li> <li>I removed the TLS certificate references since the Dev fabric doesn't use TLS, </li> <li>I changed the urls to grpc instead of grpcs, </li> <li>I pointed the admin cert and key to my locations. </li> <li>the channel name.</li> </ol>

Be aware that the default port for the Explorer is port 8080 - the same as Composer Playground, so don't run them at the same time, or change the port number for the Explorer in this file: blockchain-explorer/appconfig.json

Just to reiterate I ran this with the Dev Fabric from Composer installed as per the Composer documentation.

Whilst working with this I did run into a small problem with the sequence of instructions to Build the app, and I have highlighted the extra commands I needed below:

cd blockchain-explorer/app/test npm install

<strong>cd ../</strong>

<strong>npm install</strong>

<strong>cd test</strong>

npm run test cd blockchain-explorer npm install cd client/ npm install npm test -- -u --coverage npm run build

Recommend

  • CA stack service failed to start
  • hyperledger fabric : Could not find matching private key for SKI
  • Pros and cons in using multiple actor types in same Service Fabric service
  • Setting up the network for Kubernetes
  • DB2 query Unknown column name ERRORCODE=-4460, SQLSTATE=null
  • Spring Web Security locks Neo4j embedded database
  • Detecting Qt5 with CMake
  • Cannot debug project after upgrading to Service Fabric SDK v2.3.301
  • What going wrong in using PropertiesConfiguration?
  • DDMS files not found: SDK_HOME/tools/traceview : Eclipse
  • Can I have the market update an app that was installed from else where?
  • What to do if “git push heroku master” failed?
  • Git subtree post hook
  • “undefined symbol: SQLAllocEnv” error in Java [duplicate]
  • Grails/Roo for a .Net developer
  • Rails 4.0.0 jQuery Mobile button icons not showing in production
  • cannot load gems in test environment
  • Left fixed columns with table colspan
  • How to have a website splash screen (web app)
  • Team Foundation Server 2015 vs. Bitbucket Server (Stash)
  • Rails 4.1 environment variables not reloading
  • Consuming a web service with the Netbeans Platform
  • php show all images in directory and sort by last modified
  • Why does Sencha 2 only work in Webkit browsers?
  • EF 4.1 DBContext AutoDetectChangesEnabled
  • How to use Windows Media Foundation with UWP without a topology
  • Can I programmatically choose the Android layout folder?
  • Graphics.CopyFromScreen [Web application] + The handle is invalid
  • Does Mobilefirst provide a provision to access web services directly?
  • How to revert to previous XCode version?
  • ADO and msqli connections very slow
  • x64 applications using gdi+: what are the consequences on performance?
  • If I include Java 8 in my Android app does that affect which devices it will work on?
  • req.body is undefined - nodejs
  • Symfony2: How to get request parameter
  • Akka Routing: Reply's send to router ends up as dead letters
  • Warning: Can't call setState (or forceUpdate) on an unmounted component
  • Is there a mandatory requirement to switch app.yaml?
  • VB.net deserialize, JSON Conversion from type 'Dictionary(Of String,Object)' to type '
  • Is it possible to post an object from jquery to bottle.py?