How to fetch asset modification history in hyperledger fabric

后端 未结 4 888
独厮守ぢ
独厮守ぢ 2021-01-07 13:33

I am using IBM bluemix blockchain service to tryout some smart contract logic for my asset sharing demo.

Is there anyway to query the asset modified history in hyp

4条回答
  •  不要未来只要你来
    2021-01-07 14:02

    For NodeJS SDK:

    You can use 'GetHistoryForKey'. It returns a history of key values across time. For each historic key update, the historic value and associated transaction id and timestamp are returned.

    You can find it here (doc. link):

    https://fabric-shim.github.io/release-1.3/fabric-shim.ChaincodeStub.html#getHistoryForKey__anchor

提交回复
热议问题