'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..



Solution 1:[1]

Please try the stub method getTxID() instead.

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 MonoThreaded