Warm tip: This article is reproduced from stackoverflow.com, please click
blockchain hyperledger hyperledger-fabric hyperledger-chaincode chaincode

HyperLedger Fabric history transaction with key

发布于 2020-04-13 10:08:10

I'm using the fabcar project: https://github.com/IBM/blockchain-application-using-fabric-java-sdk

I would like to know if there is a way to get the transaction history with a certain key (Not just querying a simple car o listing all of them.

Thank you.

Questioner
Pablo Bonet
Viewed
52
Pierre-Henri Debris 2020-02-03 18:40

Yes, you have an API called GetHistoryForKey()

You can read more here : How to fetch asset modification history in hyperledger fabric