Added pool hashrate chart

This commit is contained in:
nymkappa committed 2022-03-08 20:46:14 +01:00
1 parent 0e9f8773c5
commit 0e2e420a1c
7 files changed
+228 -55

No files matched your search

+4
View File
@@ -143,6 +143,10 @@ export class ApiService {
);
}
getPoolHashrate$(poolId: number, interval: string | undefined): Observable<any> {
return this.httpClient.get<any>(this.apiBaseUrl + this.apiBasePath + `/api/v1/mining/pool/${poolId}/hashrate/${interval}`);
}
getPoolBlocks$(poolId: number, fromHeight: number): Observable<BlockExtended[]> {
return this.httpClient.get<BlockExtended[]>(
this.apiBaseUrl + this.apiBasePath + `/api/v1/mining/pool/${poolId}/blocks` +