Node and channel API

This commit is contained in:
softsimon
2022-04-29 03:57:27 +04:00
parent 8d622e3606
commit f5325b3a6d
15 changed files with 174 additions and 13 deletions

View File

@@ -12,6 +12,14 @@ export class LightningApiService {
private httpClient: HttpClient,
) { }
getNode$(publicKey: string): Observable<any> {
return this.httpClient.get<any>(API_BASE_URL + '/nodes/' + publicKey);
}
getChannelsByNodeId$(publicKey: string): Observable<any> {
return this.httpClient.get<any>(API_BASE_URL + '/channels/' + publicKey);
}
getLatestStatistics$(): Observable<any> {
return this.httpClient.get<any>(API_BASE_URL + '/statistics/latest');
}