@using BTCPayServer.Lightning @using BTCPayServer.Models.StoreViewModels @using BTCPayServer.Plugins.Breez @using BTCPayServer.Security @using BTCPayServer.Client @inject BreezService BreezService @{ string storeId = null; if (Model is string s) { storeId = s; } else if (Model is StoreDashboardViewModel dashboardModel) { storeId = dashboardModel.StoreId; } else { storeId = Context.GetImplicitStoreId(); } var sdk = BreezService.GetClient(storeId)?.Sdk; if (sdk is null) return; var nodeState = sdk.NodeInfo(); var lspInfo = sdk.LspInfo(); }
@if (Model is StoreDashboardViewModel) {

Breez Node

Manage
}
@nodeState.id
@if (lspInfo is not null) {
@lspInfo.name LSP connected
}
On-Chain Balance
@if (Model is StoreDashboardViewModel && nodeState.onchainBalanceMsat > 0) {
Sweep
}

@LightMoney.MilliSatoshis(nodeState.onchainBalanceMsat).ToUnit(LightMoneyUnit.BTC)

BTC
Lightning Balance
@if (Model is StoreDashboardViewModel) {
Swap in @if (nodeState.channelsBalanceMsat > 0) { - Swap out }
}

@LightMoney.MilliSatoshis(nodeState.channelsBalanceMsat).ToUnit(LightMoneyUnit.BTC)

BTC
Lightning insight

@LightMoney.MilliSatoshis(nodeState.maxReceivableMsat).ToUnit(LightMoneyUnit.BTC)

BTC receivable

@LightMoney.MilliSatoshis(nodeState.totalInboundLiquidityMsats).ToUnit(LightMoneyUnit.BTC)

BTC inbound liquidity

@LightMoney.MilliSatoshis(nodeState.maxPayableMsat).ToUnit(LightMoneyUnit.BTC)

BTC spendable