@using BTCPayServer.Controllers
@model WalletPSBTViewModel
@{
var walletId = Context.GetRouteValue("walletId").ToString();
var cancelUrl = Model.ReturnUrl ?? Url.Action(nameof(UIWalletsController.WalletTransactions), new { walletId });
var backUrl = Model.BackUrl != null ? $"{Model.BackUrl}?returnUrl={Model.ReturnUrl}" : null;
var isReady = !Model.HasErrors;
var isSignable = !isReady;
var needsExport = !isSignable && !isReady;
Layout = "_LayoutWizard";
ViewData.SetActivePage(WalletsNavPages.PSBT, isReady ? "Confirm broadcasting this transaction" : "Transaction Details", walletId);
}
@section PageHeadContent {
}
@section PageFootContent {
}
@section Navbar {
@if (backUrl != null)
{
@ViewData["Title"]
Export the PSBT for your wallet. Sign it with your wallet and import the signed PSBT version here for finalization and broadcasting.
}@Model.PSBT
@Model.PSBTHex
@Model.Decoded