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); }
public void InitializeTransaction() { Transaction = new MutableTransaction(); }