Malatesh Patil
Malatesh Patil

Reputation: 4665

How to get query transaction id from AWS managed blockchain using chaincode

I am not able to get transaction id from AWS managed blockchain using chaincode's stub.getState(key) method. Please suggest..

Upvotes: 1

Views: 152

Answers (1)

MonoThreaded
MonoThreaded

Reputation: 12033

Please try the stub method getTxID() instead.

Or, you can get it from the transaction object at the client layer when submitting the transaction

Upvotes: 0

Related Questions