如何查询Hyperledger Fabric事务的详细信息

问题描述 投票:0回答:1

如果您在composer playground上部署网络,则可以访问“所有事务”

enter image description here

我认为与实施相同

“SELECT org.hyperledger.composer.system.HistorianRecord”

但是在操场上有一个按钮“查看记录”

提供交易详情:

{
 "$class": "org.ACME.OwnershipChange",
 "PreviousOwner": "WHF_123",
 "NewOwner": "HFS_456",
 "debtID": "123123126",
 "transactionId": "4e04116f-5788-48ac-9930-e0bf3beb74e3",
 "timestamp": "2019-03-20T19:53:42.796Z"
}

当试图通过Composer REST实现Historian Record查询时,我得到了Record的所有细节,但没有得到上述“View Record”中提到的事务细节。

{
    "$class": "org.hyperledger.composer.system.HistorianRecord",
    "transactionId": "2c80fd8b89cef32fb9dff6864d76b9fecd2194cd447266161fc9d1fb1a32aed9",
    "transactionType": "org.ACME.OwnershipChange",
    "transactionInvoked": "resource:org.ACME.OwnershipChange#2c80fd8b89cef32fb9dff6864d76b9fecd2194cd447266161fc9d1fb1a32aed9",
    "participantInvoking": "resource:org.hyperledger.composer.system.NetworkAdmin#admin",
    "identityUsed": "resource:org.hyperledger.composer.system.Identity#d258882fc3c452601433a729958ba3c592bd31e95fc43fbf493f5be3dc566dd1",
    "eventsEmitted": [],
    "transactionTimestamp": "2019-03-21T20:05:49.504Z"
  },

如何查询查看记录详细信息?

hyperledger-fabric hyperledger hyperledger-composer hyperledger-explorer
1个回答
0
投票

在这个帖子中找到了解决方案。

而不是查询SELECT org.hyperledger.composer.system.HistorianRecord尝试查询SELECT org.ACME.OwnershipChange

How to show transaction input data in a Hyperledger Composer query

© www.soinside.com 2019 - 2024. All rights reserved.