Merge pull request #5033 from mempool/natsoni/add-block-fee-graph

Add block fees vs subsidy bar graph
This commit is contained in:
softsimon
2024-05-17 11:47:58 +07:00
committed by GitHub
13 changed files with 719 additions and 11 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` +