Пример #1
0
 public static RequestMessage CreateSendTransactionRequest(SignedTransaction signed)
 {
     return(CreateRequest(new SendTransactionRequest
     {
         Transaction = TransactionConverter.GetTransaction(signed.Transaction),
         Signatures = TransactionConverter.GetSignatures(signed.Signatures).ToList()
     }));
 }
Пример #2
0
 public static bool TryReadSignedTransaction(SendTransactionRequest message, out SignedTransaction signed)
 {
     try
     {
         signed = TransactionConverter.GetSignedTransaction(message.Transaction, message.Signatures);
         return(signed != null);
     }
     catch
     {
         signed = null;
         return(false);
     }
 }
Пример #3
0
 private static TxDeclaration GetDeclaration(Protocol.Types.TxAddressDeclaration declaration)
 {
     return(ReferenceEquals(declaration, null) ? null : TransactionConverter.CreateDeclaration(declaration));
 }