2

I have followed this for setting up the test-network and deploying the chaincodes hlf test-network setup till querying the chaincode step I can query them using peer command from terminal but I want to query them through my api, for that I'm following this: first hlf application But I'm facing this issue while running enrolladmin.js error These are my containers: Containers

  1. Do I need to Bring up the network with Certificate Authorities, is it necessary ?
  2. Is this a port problem? If yes, from where should I change and what?
  3. I just want to write an api to query, update the chaincode ledger, is there any better way?

Please guide me, I'm a newbie in this. Thanks in advance.

AditiB
  • 332
  • 2
  • 10
  • To have better idea onto writing Node SDK applications for HLF, you can closely follow the `fabric-samples/fabcar/javascript` directory. I think you would need connection profile for the network to successfully run these applications. – Chintan Rajvir Apr 14 '20 at 05:14

1 Answers1

0

Bringing up the network with Certificate Authorities, solved my primary error.

AditiB
  • 332
  • 2
  • 10