Index daily channel stats and show in dashboard widget

This commit is contained in:
nymkappa
2022-07-06 14:56:10 +02:00
parent 4009a066e0
commit 9000b6b18e
13 changed files with 386 additions and 26 deletions

View File

@@ -52,6 +52,10 @@ export class LightningApiService {
return this.httpClient.get<any>(this.apiBasePath + '/api/v1/lightning/nodes/top');
}
listChannelStats$(publicKey: string): Observable<any> {
return this.httpClient.get<any>(this.apiBasePath + '/channels/' + publicKey + '/statistics');
}
listStatistics$(): Observable<any> {
return this.httpClient.get<any>(this.apiBasePath + '/api/v1/lightning/statistics');
}