Add endpoint for difficulty adjustment by height

This commit is contained in:
natsoni
2024-07-31 14:37:53 +02:00
parent e3c3f31ddb
commit d04e5128ba
3 changed files with 35 additions and 0 deletions

View File

@@ -315,6 +315,12 @@ export class ApiService {
);
}
getDifficultyAdjustmentByHeight$(height: number): Observable<any> {
return this.httpClient.get<any>(
this.apiBaseUrl + this.apiBasePath + `/api/v1/mining/difficulty-adjustment/${height}`
);
}
getHistoricalHashrate$(interval: string | undefined): Observable<any> {
return this.httpClient.get<any[]>(
this.apiBaseUrl + this.apiBasePath + `/api/v1/mining/hashrate` +