I am working on reading the Block data received by transaction id. I have queried the ledger and received the block but not able to find a way to decode the internal data of a block.
MyCode
block, err := ledgerClient.QueryBlockByTxID(transactionID)
if err != nil {
return nil, errors.WithMessage(err, "QueryBlockByTransactionID return error")
}
if block == nil {
return nil, errors.WithMessage(nil,"Block info not available")
}
here in this query, it returns the block created by a transaction. So, now how to decode this block, so then I can able to read the content of the block
please suggest me some solution.