internal HardwareWalletViewModel(Wallet wallet) : base(wallet) { BroadcastPsbtCommand = ReactiveCommand.CreateFromTask(async() => { try { var path = await FileDialogHelper.ShowOpenFileDialogAsync("Import Transaction", new[] { "psbt", "*" }); if (path is { }) { var txn = await TransactionHelpers.ParseTransactionAsync(path, wallet.Network); Navigate(NavigationTarget.DialogScreen).To(new BroadcastTransactionViewModel(wallet.Network, txn)); } } catch (Exception ex) { Logger.LogError(ex); await ShowErrorAsync(Title, ex.ToUserFriendlyString(), "It was not possible to load the transaction."); } });