diff --git a/BTCPayApp.CommonServer/IBTCPayAppHubClient.cs b/BTCPayApp.CommonServer/IBTCPayAppHubClient.cs index 78b72cf95..852503160 100644 --- a/BTCPayApp.CommonServer/IBTCPayAppHubClient.cs +++ b/BTCPayApp.CommonServer/IBTCPayAppHubClient.cs @@ -23,6 +23,8 @@ public interface IBTCPayAppHubClient Task> GetLightningInvoices(ListInvoicesParams request); Task PayInvoice(string bolt11, long? amountMilliSatoshi); Task MasterUpdated(long? deviceIdentifier); + Task GetLightningNodeInfo(); + Task GetLightningBalance(); } //methods available on the hub in the server diff --git a/BTCPayServer/App/BTCPayAppLightningClient.cs b/BTCPayServer/App/BTCPayAppLightningClient.cs index 17d5a1da5..bce6c673c 100644 --- a/BTCPayServer/App/BTCPayAppLightningClient.cs +++ b/BTCPayServer/App/BTCPayAppLightningClient.cs @@ -148,12 +148,12 @@ public class BTCPayAppLightningClient : ILightningClient public async Task GetInfo(CancellationToken cancellation = new CancellationToken()) { - throw new NotSupportedException(); + return await HubClient.GetLightningNodeInfo(); } public async Task GetBalance(CancellationToken cancellation = new CancellationToken()) { - throw new NotImplementedException(); + return await HubClient.GetLightningBalance(); } public async Task Pay(PayInvoiceParams payParams,