0

How can I use fabric-sdk-go to get the transaction timestamp from the block?

xupter
  • 61
  • 3
  • 1
    Have you tried anything so far ? – Crocsx Nov 29 '19 at 01:44
  • I tried to parse the block, but I don't know how to use fabric-sdk-go to get the transaction data in the block. – xupter Nov 29 '19 at 01:51
  • 2
    I know you are new to posting, but it would be helpful if you could modify your question to include a snippet of any code you have tried so far. – Gari Singh Nov 29 '19 at 09:51

1 Answers1

0

This problem has been solved. TimeStamp can be obtained by parsing *common.BlockData, which is contained in *common.ChannelHeader.

xupter
  • 61
  • 3