Call node backend block API instead of electrs

This commit is contained in:
nymkappa committed 2022-05-12 08:13:42 +02:00
1 parent 384c8d17cf
commit 6ae44c6f7e
2 files changed
+8 -2

No files matched your search

+4
View File
@@ -154,6 +154,10 @@ export class ApiService {
);
}
getBlock$(hash: string): Observable<BlockExtended> {
return this.httpClient.get<BlockExtended>(this.apiBaseUrl + this.apiBasePath + '/api/v1/block/' + hash);
}
getHistoricalHashrate$(interval: string | undefined): Observable<any> {
return this.httpClient.get<any[]>(
this.apiBaseUrl + this.apiBasePath + `/api/v1/mining/hashrate` +