Add block sizes and weights graph

This commit is contained in:
nymkappa committed 2022-05-10 16:41:40 +02:00
1 parent 19e432ecd1
commit 101ba351a8
10 files changed
+546 -7

No files matched your search

+7
View File
@@ -189,6 +189,13 @@ export class ApiService {
);
}
getHistoricalBlockSizesAndWeights$(interval: string | undefined) : Observable<any> {
return this.httpClient.get<any[]>(
this.apiBaseUrl + this.apiBasePath + `/api/v1/mining/blocks/sizes-weights` +
(interval !== undefined ? `/${interval}` : ''), { observe: 'response' }
);
}
getRewardStats$(blockCount: number = 144): Observable<RewardStats> {
return this.httpClient.get<RewardStats>(this.apiBaseUrl + this.apiBasePath + `/api/v1/mining/reward-stats/${blockCount}`);
}