示例#1
0
        public bool FinalizeTransaction()
        {
            if (Transaction == null)
            {
                return(false);
            }

            Transaction.Expire = Transaction.Expire == 0 ? DateTime.UtcNow.AddMinutes(1).ToUnixTimestamp() : Transaction.Expire;

            if (Transaction.Fees == null)
            {
                var active = WalletService.GetActiveKey();
                if (active != null)
                {
                    Transaction.Fees = WalletService.CreateFeesInput(WalletService.GetActiveKey().Data.Address);
                }
            }

            if (WalletService.SignAndSubmit(Transaction.CreateTransaction()))
            {
                Transaction = null;
                return(true);
            }

            return(false);
        }
示例#2
0
 public void InitializeTransaction()
 {
     Transaction = new MutableTransaction();
 }