diff --git a/BTCPayServer.Client/App/IBTCPayAppHubClient.cs b/BTCPayServer.Client/App/IBTCPayAppHubClient.cs index 78e0c17a8..05f7090dc 100644 --- a/BTCPayServer.Client/App/IBTCPayAppHubClient.cs +++ b/BTCPayServer.Client/App/IBTCPayAppHubClient.cs @@ -44,7 +44,7 @@ public interface IBTCPayAppHubServer Task DeriveScript(string identifier); Task TrackScripts(string identifier, string[] scripts); Task UpdatePsbt(string[] identifiers, string psbt); - Task GetUTXOs(string[] identifiers); + Task> GetUTXOs(string[] identifiers); Task> GetTransactions(string[] identifiers); Task SendInvoiceUpdate(LightningInvoice lightningInvoice); Task GetCurrentMaster(); @@ -94,7 +94,6 @@ public class TransactionDetectedRequest public class CoinResponse { - public string? Identifier{ get; set; } public bool Confirmed { get; set; } public string? Script { get; set; } public string? Outpoint { get; set; } diff --git a/BTCPayServer/BTCPayServer.csproj b/BTCPayServer/BTCPayServer.csproj index 3f3f45b2f..9ac706557 100644 --- a/BTCPayServer/BTCPayServer.csproj +++ b/BTCPayServer/BTCPayServer.csproj @@ -81,6 +81,7 @@ + diff --git a/BTCPayServer/Hosting/Startup.cs b/BTCPayServer/Hosting/Startup.cs index 51b59a00d..58cc25637 100644 --- a/BTCPayServer/Hosting/Startup.cs +++ b/BTCPayServer/Hosting/Startup.cs @@ -115,7 +115,11 @@ namespace BTCPayServer.Hosting services.AddBTCPayServer(Configuration, Logs); services.AddProviderStorage(); services.AddSession(); - services.AddSignalR(); + services.AddSignalR().AddNewtonsoftJsonProtocol(options => + { + NBitcoin.JsonConverters.Serializer.RegisterFrontConverters(options.PayloadSerializerSettings); + options.PayloadSerializerSettings.Converters.Add(new BTCPayServer.Lightning.JsonConverters.LightMoneyJsonConverter()); + }); services.AddFido2(options => { options.ServerName = "BTCPay Server";