public bool AcceptTransaction(string transactionKey) { if (!Account.HasPendingTransaction(transactionKey)) { return(false); } var transaction = Account.GetPendingTransaction(transactionKey); if (!VerifyTransaction(transaction)) { return(false); } Account.ClosePendingTransaction(transactionKey); OnTransactionAccepted(transaction); return(true); }