Node stats updates

This commit is contained in:
softsimon
2022-05-05 23:19:24 +04:00
parent b0b73e6c70
commit 07821769cd
11 changed files with 127 additions and 20 deletions

View File

@@ -32,6 +32,10 @@ export class LightningApiService {
return this.httpClient.get<any>(API_BASE_URL + '/statistics/latest');
}
listNodeStats$(publicKey: string): Observable<any> {
return this.httpClient.get<any>(API_BASE_URL + '/nodes/' + publicKey + '/statistics');
}
listTopNodes$(): Observable<any> {
return this.httpClient.get<any>(API_BASE_URL + '/nodes/top');
}