0

I am using the GoLang SDK to interact with a Fabric network in chaincode, but I cannot find a way to get the certificate from a transaction ID to find out who signed the transaction.

EdChum
  • 376,765
  • 198
  • 813
  • 562
TienThanh
  • 34
  • 1
  • 13

1 Answers1

0

For client SDK, you can use QueryTransaction as found here which returns a ProcessedTransaction object based on the tx id. This will have information of the signer of the transaction. The object will look like this. You then use the object in this function to get a transaction envelope and finally use GetSignature function. This wil return bytes so you got to convert to string.

Varun Agarwal
  • 1,587
  • 14
  • 29