Add block fees graph

This commit is contained in:
nymkappa
2022-04-09 01:07:13 +09:00
parent 8423f8600d
commit ae0bc02c78
12 changed files with 489 additions and 51 deletions

View File

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