public Task <HeleusClientResponse> SendDataTransaction(DataTransaction transaction, bool awaitResponse) { if (CurrentServiceAccount == null) { Log.Trace($"Sending chain transaction {transaction.GetType().Name} failed, no chain account set.", this); return(Task.FromResult(new HeleusClientResponse(HeleusClientResultTypes.InternalError))); } return(SendDataTransaction(transaction, awaitResponse, CurrentServiceAccount)); }
Task <HeleusClientResponse> SendDataTransactionWithCoreAccount(DataTransaction transaction, bool awaitResponse) { if (CurrentCoreAccount == null) { Log.Trace($"Sending data transaction {transaction.GetType().Name} with core account failed, no core account set.", this); return(Task.FromResult(new HeleusClientResponse(HeleusClientResultTypes.InternalError))); } return(SendDataTransaction(transaction, awaitResponse, CurrentCoreAccount)); }