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總共有:
chaincodechannelhelplifecycle chaincodenodesnapshotversion
peer chaincode [command] [flags]
command合集
peer chaincode 后面可以跟的command有:
| command | 原文 | 翻譯 |
|---|---|---|
install | Install a chaincode. | 安裝鏈碼 |
instantiate | Deploy the specified chaincode to the network. | 實體化部署指定chaincode到網路 |
invoke | Invoke the specified chaincode. | 呼叫指定的鏈碼 |
list | Get the instantiated chaincodes on a channel or installed chaincodes on a peer. | 獲取通道上的實體化鏈碼或對等點上安裝的鏈碼, |
package | Package a chaincode | 打包一個鏈碼 |
query | Query using the specified chaincode. | 使用指定的鏈碼查詢查詢 |
signpackage | Sign the specified chaincode package | 對指定的鏈碼包進行簽名 |
upgrade | Upgrade chaincode. | 升級鏈碼 |
Flag合集
peer chaincode command 后面可以跟的flags有:
| Flags | 原文 | 翻譯 |
|---|---|---|
--cafile string | Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint | 包含排序端點的 PEM 編碼可信證書的檔案路徑 |
--certfile string | Path to file containing PEM-encoded X509 public key to use for mutual TLS communication with the orderer endpoint | 包含 PEM 編碼的 X509 公鑰的檔案路徑,用于與排序端點相互的TLS通信 |
--clientauth | Use mutual TLS when communicating with the orderer endpoint | 與排序節點通信時使用雙向 TLS |
--connTimeout duration | Timeout for client to connect (default 3s) | 客戶端連接超時(默認 3s) |
--keyfile string | Path to file containing PEM-encoded private key to use for mutual TLS communication with the orderer endpoint | 包含 PEM 編碼私鑰的檔案路徑,用于與排序端點的相互 TLS 通信 |
-o, --orderer string | Ordering service endpoint | 排序節點地址 |
--ordererTLSHostnameOverride string | The hostname override to use when validating the TLS connection to the orderer | 驗證TLS連接時使用的排序節點主機名 |
--tls | Use TLS when communicating with the orderer endpoint | 與排序節點通信時使用 TLS |
--tlsHandshakeTimeShift duration | The amount of time to shift backwards for certificate expiration checks during TLS handshakes with the orderer endpoint | 在與排序節點的 TLS 握手期間為證書過期檢查向后移動的時間量 |
--transient string | Transient map of arguments in JSON encoding | 編碼中引數的瞬態映射 |
peer channel [command]
command合集
peer channel 后面可以跟的command有:
| command | 原文 | 翻譯 |
|---|---|---|
create | Create a channel | 創建一個通道 |
fetch | Fetch a block | 獲取一個塊 |
getinfo | get blockchain information of a specified channel. | 獲取指定通道的區塊鏈資訊 |
join | Joins the peer to a channel. | 將 peer 加入頻道 |
joinbysnapshot | Joins the peer to a channel by the specified snapshot | 通過指定快照將peer加入頻道 |
joinbysnapshotstatus | Query if joinbysnapshot is running for any channel | 查詢 joinbysnapshot 是否正在為任何通道運行 |
list | List of channels peer has joined. | peer已加入的通道串列 |
signconfigtx | Signs a configtx update. | 簽署 configtx 更新 |
update | Send 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 | 原文 | 翻譯 |
|---|---|---|
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. | 從peer節點獲取已經安裝的鏈碼包 |
install | Install a chaincode. | 安裝鏈碼 |
package | Package a chaincode | 打包鏈碼 |
queryapproved | Query an org’s approved chaincode definition from its peer. | 從它的peer查詢組織已批準的鏈碼實體 |
querycommitted | Query the committed chaincode definitions by channel on a peer. | 按通道查詢已經提交的鏈碼定義 |
queryinstalled | Query the installed chaincodes on a peer. | 查詢指定peer節點上已經安裝的鏈碼 |
peer node [command]
command合集
peer node 后面可以跟的command有:
| command | 原文 | 翻譯 |
|---|---|---|
pause | Pauses a channel on the peer. | 暫停一個通道 |
rebuild-dbs | Rebuilds databases. | 重建資料庫 |
reset | Resets the node. | 重設節點 |
resume | Resumes a channel on the peer. | 繼續通道 |
rollback | Rolls back a channel. | 回滾一個通道 |
start | Starts the node. | 啟動一個節點 |
upgrade-dbs | Upgrades 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 | 原文 | 翻譯 |
|---|---|---|
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. | 提交指定塊的快照請求 |
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/300301.html
標籤:區塊鏈
