首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何在织物中找到链码标识?

如何在织物中找到链码标识?
EN

Stack Overflow用户
提问于 2017-04-08 15:17:15
回答 1查看 1.8K关注 0票数 0

如何在运行peer chaincode installpeer chaincode instantiate命令后找到链码id。

在运行peer chaincode query时,我需要传递链码id。否则,我将在对等控制台中获得此错误:

代码语言:javascript
运行
复制
ChaincodeId: test_cc does not exist on channel: testchainid(err:chaincode not found test_cc)
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-04-12 15:03:57

代码语言:javascript
运行
复制
Usage:
peer chaincode install [flags]

Flags:
-h, --help   help for install

Global Flags:
  --cafile string              Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint
  -C, --chainID string             The chain on which this command should be executed (default "testchainid")
  -c, --ctor string                Constructor message for the chaincode in JSON format (default "{}")
  -E, --escc string                The name of the endorsement system chaincode to be used for this chaincode
  -l, --lang string                Language the chaincode is written in (default "golang")
  --logging-level string       Default logging level and overrides, see core.yaml for full syntax
  -n, --name string                Name of the chaincode
  -o, --orderer string             Ordering service endpoint
  -p, --path string                Path to chaincode
  -P, --policy string              The endorsement policy associated to this chaincode
  --test.coverprofile string   Done (default "coverage.cov")
  -t, --tid string                 Name of a custom ID generation algorithm (hashing and decoding) e.g. sha256base64
  --tls                        Use TLS when communicating with the orderer endpoint
  -u, --username string            Username for chaincode operations when security is enabled
  -v, --version string             Version of the chaincode specified in install/instantiate/upgrade commands
  -V, --vscc string                The name of the verification system chaincode to be used for this chaincode

您使用的-n--name选项是链码id。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43295811

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档