Improve granularity when zoom in block fees bar graph

This commit is contained in:
natsoni
2024-05-14 20:31:25 +02:00
parent 42d591bf4c
commit c2a3ff4b67
6 changed files with 254 additions and 36 deletions

View File

@@ -333,6 +333,12 @@ export class ApiService {
);
}
getBlockFeesFromTimespan$(from: number, to: number): Observable<any> {
return this.httpClient.get<any[]>(
this.apiBaseUrl + this.apiBasePath + `/api/v1/mining/blocks/fees?from=${from}&to=${to}`, { observe: 'response' }
);
}
getHistoricalBlockRewards$(interval: string | undefined) : Observable<any> {
return this.httpClient.get<any[]>(
this.apiBaseUrl + this.apiBasePath + `/api/v1/mining/blocks/rewards` +