예제 #1
0
 public Transaction.Transaction prepareTx(Transaction.Transaction tx, int attempts, int interval)
 {
     tx = signer.Sign(tx);
     try
     {
         CreateTxResult createTxResult = provider.CreateTransaction(tx.ToTransactionPayload()).Result;
         tx.Confirm(createTxResult.TranID, attempts, interval);
     }
     catch (IOException e)
     {
         tx.Status = TxStatus.Rejected;
     }
     catch (Exception e)
     {
     }
     return(tx);
 }