简体   繁体   English

我正在尝试通过 nodejs 访问本地超级账本测试网络链代码,以编写 api

[英]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我已经按照这个设置测试网络并部署链代码hlf 测试网络设置,直到查询链代码步骤我可以使用终端的 peer 命令查询它们,但我想通过我的 api 查询它们,因为我正在关注这个: 第一个 hlf 应用程序但是我在运行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?我只想写一个 api 来查询,更新链码账本,有没有更好的办法?

Please guide me, I'm a newbie in this.请指导我,我是这方面的新手。 Thanks in advance.提前致谢。

Bringing up the network with Certificate Authorities, solved my primary error.使用证书颁发机构启动网络,解决了我的主要错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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