I am studying the Hyperledger Fabric Blockchain and I would like to understand if and how it is possible to explore and analyze the data inside a Hyperledger Fabric Blockchain network.
Is there a non-interactive way to analyze all the transactions of the blockchain locally? or even demanding the analysis to someone else? It would be great, as Ethereum allows us to do, to explore the ledger and its transactions to then focus on some specific of them.
Thanks in advance guys!
答案 0 :(得分:0)
取决于您的使用案例。在Hyperledger Composer中,您有一个Historian注册表(为业务网络记录的所有事务)。您可以使用多个业务网络进行查询(每个BN都是分类帐的视图,因为您已在这些方之间建模了业务网络和智能合约逻辑等)。您可以使用查询,REST API和过滤器来进行分析。您还可以拥有一个“监管者”类型的参与者,他可以看到分类帐上业务网络中发生的“一切”。在Hyperledger Fabric中,您可以使用路由组合直接查询Fabric区块链:您拥有Node js REST API https://github.com/hyperledger/fabric-sdk-rest(这些是正在进行的工作)或者您可以使用Fabric SDK示例 - > https://fabric-sdk-node.github.io/