btcpayserver/BTCPayServer/Services/Wallets
d11n 641bdcff31
Histograms: Add Lightning data and API endpoints (#6217)
* Histograms: Add Lightning data and API endpoints

Ported over from the mobile-working-branch.

Adds histogram data for Lightning and exposes the wallet/lightning histogram data via the API. It also add a dashboard graph for the Lightning balance.

Caveat: The Lightning histogram is calculated by using the current channel balance and going backwards through as much invoices and transactions as we have. The "start" of the LN graph data might not be accurate though. That's because we don't track (and not even have) the LN onchain data. It is calculated by using the current channel balance and going backwards through as much invoices and transactions as we have. So the historic graph data for LN is basically a best effort of trying to reconstruct it with what we have: The LN channel transactions.

* More timeframes

* Refactoring: Remove redundant WalletHistogram types

* Remove store property from dashboard tile view models

* JS error fixes
2024-11-05 21:40:37 +09:00
..
Export Bump dependencies (#5996) 2024-05-23 22:16:16 +09:00
BTCPayWallet.cs Fix crash on /wallets/transactions with non zero skip parameter (Fix #5183) 2023-08-23 16:11:25 +09:00
BTCPayWalletProvider.cs Code formatting updates (#4502) 2023-01-06 22:18:07 +09:00
WalletHistogramService.cs Histograms: Add Lightning data and API endpoints (#6217) 2024-11-05 21:40:37 +09:00
WalletReceiveService.cs Remove additional cryptoCode from events (#6277) 2024-10-07 09:37:56 +09:00