Example #1
0
 public Transaction(List <TxDeclaration> declarations, List <TxInput> inputs, List <TxOutput> outputs, TransactionMessage message, long expire, TxInput fees = null)
 {
     Expire       = expire;
     Fees         = fees;
     Declarations = declarations;
     Inputs       = inputs;
     Outputs      = outputs;
     Message      = message;
 }
Example #2
0
 public static bool IsEmpty(this TransactionMessage transaction)
 {
     return(transaction == null);
 }
Example #3
0
 public static long ToLong(TransactionMessage message)
 {
     return(BitConverter.ToInt64(message.GetBytes(), 0));
 }
Example #4
0
 public static double ToDouble(TransactionMessage message)
 {
     return(BitConverter.ToDouble(message.GetBytes(), 0));
 }
Example #5
0
 public static string ToString(TransactionMessage message)
 {
     return(Encoding.ASCII.GetString(message.GetBytes()));
 }