Link channels from Transaction page.

This commit is contained in:
softsimon
2022-05-07 11:32:15 +04:00
parent 31d280f729
commit 67eab93129
7 changed files with 86 additions and 15 deletions

View File

@@ -231,4 +231,13 @@ export class ApiService {
getRewardStats$(blockCount: number = 144): Observable<RewardStats> {
return this.httpClient.get<RewardStats>(this.apiBaseUrl + this.apiBasePath + `/api/v1/mining/reward-stats/${blockCount}`);
}
getChannelByTxIds$(txIds: string[]): Observable<any[]> {
let params = new HttpParams();
txIds.forEach((txId: string) => {
params = params.append('txId[]', txId);
});
return this.httpClient.get<any[]>(this.apiBaseUrl + this.apiBasePath + '/lightning/api/v1/channels/txids/', { params });
}
}