当前位置:首页 » 《资源分享》 » 正文

Hyperledger Fabric2.3 中 Peer指令合集_JAY的博客

0 人参与  2021年11月01日 16:23  分类 : 《资源分享》  评论

点击全文阅读


Hyperledger Fabric2.3 中 Peer指令合集

  • Available Commands/可用指令
  • peer chaincode [command] [flags]
    • command合集
    • Flag合集
  • peer channel [command]
    • command合集
  • peer lifecycle chaincode [command]
    • command合集
  • peer node [command]
    • command合集
  • peer snapshot [command]
    • command合集

Peer指令格式 peer [command] [flags]

Available Commands/可用指令

peer后面可以跟的commands总共有:

  1. chaincode
  2. channel
  3. help
  4. lifecycle chaincode
  5. node
  6. snapshot
  7. version

peer chaincode [command] [flags]

command合集

peer chaincode 后面可以跟的command有:


command原文翻译
installInstall a chaincode.安装链码
instantiateDeploy the specified chaincode to the network.实例化部署指定chaincode到网络
invokeInvoke the specified chaincode.调用指定的链码
listGet the instantiated chaincodes on a channel or installed chaincodes on a peer.获取通道上的实例化链码或对等点上安装的链码。
packagePackage a chaincode打包一个链码
queryQuery using the specified chaincode.使用指定的链码查询查询
signpackageSign the specified chaincode package对指定的链码包进行签名
upgradeUpgrade chaincode.升级链码

Flag合集

peer chaincode command 后面可以跟的flags有:


Flags原文翻译
--cafile stringPath to file containing PEM-encoded trusted certificate(s) for the ordering endpoint包含排序端点的 PEM 编码可信证书的文件路径
--certfile stringPath to file containing PEM-encoded X509 public key to use for mutual TLS communication with the orderer endpoint包含 PEM 编码的 X509 公钥的文件路径,用于与排序端点相互的TLS通信
--clientauthUse mutual TLS when communicating with the orderer endpoint与排序节点通信时使用双向 TLS
--connTimeout durationTimeout for client to connect (default 3s)客户端连接超时(默认 3s)
--keyfile stringPath to file containing PEM-encoded private key to use for mutual TLS communication with the orderer endpoint包含 PEM 编码私钥的文件路径,用于与排序端点的相互 TLS 通信
-o, --orderer stringOrdering service endpoint排序节点地址
--ordererTLSHostnameOverride stringThe hostname override to use when validating the TLS connection to the orderer验证TLS连接时使用的排序节点主机名
--tlsUse TLS when communicating with the orderer endpoint与排序节点通信时使用 TLS
--tlsHandshakeTimeShift durationThe amount of time to shift backwards for certificate expiration checks during TLS handshakes with the orderer endpoint在与排序节点的 TLS 握手期间为证书过期检查向后移动的时间量
--transient stringTransient map of arguments in JSON encoding编码中参数的瞬态映射

peer channel [command]

command合集

peer channel 后面可以跟的command有:


command原文翻译
createCreate a channel创建一个通道
fetchFetch a block获取一个块
getinfoget blockchain information of a specified channel.获取指定通道的区块链信息
joinJoins the peer to a channel.将 peer 加入频道
joinbysnapshotJoins the peer to a channel by the specified snapshot通过指定快照将peer加入频道
joinbysnapshotstatusQuery if joinbysnapshot is running for any channel查询 joinbysnapshot 是否正在为任何通道运行
listList of channels peer has joined.peer已加入的通道列表
signconfigtxSigns a configtx update.签署 configtx 更新
updateSend a configtx update.发送 configtx 更新

peer lifecycle chaincode [command]

command合集

peer lifecycle chaincode 后面可以跟的command有:


approveformyorg Approve the chaincode definition for my org.
checkcommitreadiness Check whether a chaincode definition is ready to be committed on a channel.
commit Commit the chaincode definition on the channel.
getinstalledpackage Get an installed chaincode package from a peer.
install Install a chaincode.
package Package a chaincode
queryapproved Query an org’s approved chaincode definition from its peer.
querycommitted Query the committed chaincode definitions by channel on a peer.
queryinstalled Query the installed chaincodes on a peer.

command原文翻译
approveformyorgApprove the chaincode definition for my org.批准链码定义
checkcommitreadinessCheck whether a chaincode definition is ready to be committed on a channel.检查链码是否可以向通道提交
commitCommit the chaincode definition on the channel.向通道提交链码定义
getinstalledpackageGet an installed chaincode package from a peer.从peer节点获取已经安装的链码包
installInstall a chaincode.安装链码
packagePackage a chaincode打包链码
queryapprovedQuery an org’s approved chaincode definition from its peer.从它的peer查询组织已批准的链码实例
querycommittedQuery the committed chaincode definitions by channel on a peer.按通道查询已经提交的链码定义
queryinstalledQuery the installed chaincodes on a peer.查询指定peer节点上已经安装的链码

peer node [command]

command合集

peer node 后面可以跟的command有:


command原文翻译
pausePauses a channel on the peer.暂停一个通道
rebuild-dbsRebuilds databases.重建数据库
resetResets the node.重设节点
resumeResumes a channel on the peer.继续通道
rollbackRolls back a channel.回滚一个通道
startStarts the node.启动一个节点
upgrade-dbsUpgrades databases.升级数据库

peer snapshot [command]

command合集

peer snapshot 后面可以跟的command有:


cancelrequest Cancel a request for a snapshot at the specified block.
listpending List pending requests for snapshots.
submitrequest Submit a request for a snapshot at the specified block.

command原文翻译
cancelrequestCancel a request for a snapshot at the specified block.取消对指定块的快照的请求
listpendingList pending requests for snapshots.列出未决的快照请求
submitrequestSubmit a request for a snapshot at the specified block.提交指定块的快照请求

点击全文阅读


本文链接:http://zhangshiyu.com/post/30364.html

合集  节点  通道  
<< 上一篇 下一篇 >>

  • 评论(0)
  • 赞助本站

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

关于我们 | 我要投稿 | 免责申明

Copyright © 2020-2022 ZhangShiYu.com Rights Reserved.豫ICP备2022013469号-1