Added pool hashrate chart

This commit is contained in:
nymkappa
2022-03-08 12:50:47 +01:00
parent 0e9f8773c5
commit 0e2e420a1c
7 changed files with 228 additions and 55 deletions

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` +