@using System.Numerics @using BTCPayServer.Lightning @using BTCPayServer.Models.StoreViewModels @using BTCPayServer.Plugins.BreezSpark @using BTCPayServer.Security @inject BreezSparkService BreezService @{ ViewData.SetActivePage("Breez", "Send", "Send"); var storeId = Model switch { string s => s, StoreDashboardViewModel dashboardModel => dashboardModel.StoreId, _ => Context.GetImplicitStoreId() }; var sdk = BreezService.GetClient(storeId)?.Sdk; if (sdk is null) return; var nodeInfo = new Breez.Sdk.Spark.GetInfoRequest(ensureSynced: false); Breez.Sdk.Spark.GetInfoResponse? infoResponse = null; try { infoResponse = await sdk.GetInfo(nodeInfo); } catch (Exception ex) {
Unable to fetch node information: @ex.Message
Destination: @paymentDetails.Destination
Amount: @paymentDetails.Amount sats
Fee: @paymentDetails.Fee sats
Total: @(paymentDetails.Amount + paymentDetails.Fee) sats