简体   繁体   中英

I'm trying to access local hyperledger test-network chaincodes through nodejs, for writing apis

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错误 These are my 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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM