Create working template for the new blocks page

This commit is contained in:
nymkappa committed 2022-03-12 16:49:15 +01:00
1 parent a56d11ef13
commit aa7476807b
8 files changed
+248 -4

No files matched your search

+7
View File
@@ -151,6 +151,13 @@ export class ApiService {
);
}
getBlocks$(from: number): Observable<BlockExtended[]> {
return this.httpClient.get<BlockExtended[]>(
this.apiBasePath + this.apiBasePath + `/api/v1/blocks-extras` +
(from !== undefined ? `/${from}` : ``)
);
}
getHistoricalDifficulty$(interval: string | undefined): Observable<any> {
return this.httpClient.get<any[]>(
this.apiBaseUrl + this.apiBasePath + `/api/v1/mining/difficulty` +