Reputation: 115
I am working on Hyperledger Fabric using SDK 1.4
I am trying to get a list of all existing peers and orders in hyperledger without being related to a channel. I found only this
way to get peers which brings only peers related to a channel: this.channel.getPeers()
In addition, I want to get other information such as:
Can someone help with this?
Upvotes: 1
Views: 557
Reputation: 356
I think can you query the information from the system chaincode QSCC. It provides ledger query APIs such as getting blocks and transactions, including: - GetChainInfo returns BlockchainInfo - GetBlockByNumber returns a block - GetBlockByHash returns a block - GetTransactionByID returns a transaction
You can refer to more information here.
https://hyperledger-fabric.readthedocs.io/en/release-1.4/chaincode4noah.html https://jira.hyperledger.org/browse/FAB-5841
Upvotes: 1