Search code examples
hyperledger-fabricblockchainhyperledgerhyperledger-chaincodechaincode

HyperLedger Fabric history transaction with key


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.


Solution

  • Yes, you have an API called GetHistoryForKey()

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