Exemple #1
0
 public override byte[] GetBody()
 {
     using (var stream = new MemoryStream())
         using (var writer = new BinaryWriter(stream))
         {
             writer.Write(TransactionType.LeaseCancel);
             writer.Write(SenderPublicKey);
             writer.WriteLong(Assets.WAVES.AmountToLong(Fee));
             writer.WriteLong(Timestamp.ToLong());
             writer.Write(TransactionId.FromBase58());
             return(stream.ToArray());
         }
 }