@using BTCPayServer @using BTCPayServer.Client @using BTCPayServer.Lightning @using BTCPayServer.Plugins.MicroNode @using Microsoft.AspNetCore.Authorization @using Microsoft.AspNetCore.Mvc.TagHelpers @model BTCPayServer.Plugins.MicroNode.MicroNodeStoreSettings? @inject IAuthorizationService AuthorizationService @inject MicroNodeService MicroNodeService @{ ViewData.SetActivePage("MicroNode ", "Configure", "Configure"); var storeId = Context.GetCurrentStoreId(); var isAdmin = (await AuthorizationService.AuthorizeAsync(User, Policies.CanModifyServerSettings)).Succeeded; var masters = (await MicroNodeService.GetMasterSettings()) .Where(pair => pair.Key != storeId && (isAdmin || pair.Value.AdminOnly is false)) .Select(m => new SelectListItem(m.Value.Name, m.Key)).ToArray(); var masterId = Context.Items.TryGetValue("MasterId", out var masterIdObj) ? masterIdObj?.ToString() : null; var payments = await MicroNodeService.GetTransactions(storeId); }

@ViewData["Title"]

@if (masters.Any()) { } @if (Model?.Key is not null) { }
@if (masters.Any()) {

Forward Destination

} else {

There is no master node available to use

} @if (payments?.Any() is true) {
@foreach (var p in payments) { }
Id Accounted Active Type Amount
@p.Id @p.Accounted @p.Active @p.Type @LightMoney.MilliSatoshis(p.Amount).ToDecimal(LightMoneyUnit.BTC) BTC
}