internal Hashgraph.TopicMessage ToTopicMessage(Hashgraph.Address topic)
 {
     return(new Hashgraph.TopicMessage
     {
         Topic = topic,
         Concensus = ConsensusTimestamp.ToDateTime(),
         Messsage = Message.ToByteArray(),
         RunningHash = RunningHash.ToByteArray(),
         SequenceNumber = SequenceNumber,
         SegmentInfo = ChunkInfo?.ToMessageSegmentInfo()
     });
 }
 private void FillCommonProperties(Hashgraph.TransactionRecord record)
 {
     record.Id             = TransactionID.ToTxId();
     record.Status         = (ResponseCode)Receipt.Status;
     record.Hash           = TransactionHash?.ToByteArray();
     record.Concensus      = ConsensusTimestamp?.ToDateTime();
     record.Memo           = Memo;
     record.Fee            = TransactionFee;
     record.Transfers      = TransferList.ToTransfers();
     record.TokenTransfers = TokenTransferLists.ToTransfers();
     if (Receipt.ExchangeRate != null)
     {
         record.CurrentExchangeRate = Receipt.ExchangeRate.CurrentRate?.ToExchangeRate();
         record.NextExchangeRate    = Receipt.ExchangeRate.NextRate?.ToExchangeRate();
     }
 }