Skip to content

channel.queryInfo() #670

Answered by bestbeforetoday
uscffk asked this question in Q&A
May 2, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

The low-level API from the fabric-client package was completely re-worked for the v2.2 release. The low-level implementation underpinning the fabric-network API is now contained in the fabric-common package, and its Channel implementation does not include a queryInfo() method:

https://hyperledger.github.io/fabric-sdk-node/main/Channel.html

As an alternative, it is possible to use the fabric-network API to evaluate the GetChainInfo transaction function on the qscc system chaincode. This returns a serialized BlockchainInfo protocol buffer message, which contains the same information as the olf queryInfo() method. You can deserialize this message using the Fabric protocol buffer bindings pub…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@uscffk
Comment options

Answer selected by bestbeforetoday
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #669 on May 02, 2023 16:10.