diff --git a/frontend/src/app/graphs/graphs.module.ts b/frontend/src/app/graphs/graphs.module.ts
index 5994a1775..737d3a5fa 100644
--- a/frontend/src/app/graphs/graphs.module.ts
+++ b/frontend/src/app/graphs/graphs.module.ts
@@ -9,6 +9,7 @@ import { BlockFeesSubsidyGraphComponent } from '@components/block-fees-subsidy-g
import { PriceChartComponent } from '@components/price-chart/price-chart.component';
import { BlockRewardsGraphComponent } from '@components/block-rewards-graph/block-rewards-graph.component';
import { BlockFeeRatesGraphComponent } from '@components/block-fee-rates-graph/block-fee-rates-graph.component';
+import { BlockGogglesGraphComponent } from '@components/block-goggles-graph/block-goggles-graph.component';
import { BlockSizesWeightsGraphComponent } from '@components/block-sizes-weights-graph/block-sizes-weights-graph.component';
import { FeeDistributionGraphComponent } from '@components/fee-distribution-graph/fee-distribution-graph.component';
import { IncomingTransactionsGraphComponent } from '@components/incoming-transactions-graph/incoming-transactions-graph.component';
@@ -70,6 +71,7 @@ import { CommonModule } from '@angular/common';
PriceChartComponent,
BlockRewardsGraphComponent,
BlockFeeRatesGraphComponent,
+ BlockGogglesGraphComponent,
BlockSizesWeightsGraphComponent,
FeeDistributionGraphComponent,
IncomingTransactionsGraphComponent,
diff --git a/frontend/src/app/graphs/graphs.routing.module.ts b/frontend/src/app/graphs/graphs.routing.module.ts
index f0399f410..91c43ecdb 100644
--- a/frontend/src/app/graphs/graphs.routing.module.ts
+++ b/frontend/src/app/graphs/graphs.routing.module.ts
@@ -25,6 +25,7 @@ import { AccelerationsListComponent } from '@components/acceleration/acceleratio
import { AddressComponent } from '@components/address/address.component';
import { WalletComponent } from '@components/wallet/wallet.component';
import { CalculatorComponent } from '@components/calculator/calculator.component';
+import { BlockGogglesGraphComponent } from '@components/block-goggles-graph/block-goggles-graph.component';
const browserWindow = window || {};
// @ts-ignore
@@ -114,6 +115,11 @@ const routes: Routes = [
data: { networks: ['bitcoin', 'liquid'] },
component: StatisticsComponent,
},
+ {
+ path: 'goggles',
+ data: { networks: [ 'bitcoin' ]},
+ component: BlockGogglesGraphComponent,
+ },
{
path: 'mining/hashrate-difficulty',
data: { networks: ['bitcoin'] },
diff --git a/frontend/src/app/services/api.service.ts b/frontend/src/app/services/api.service.ts
index d05b02c66..11be60f22 100644
--- a/frontend/src/app/services/api.service.ts
+++ b/frontend/src/app/services/api.service.ts
@@ -407,6 +407,13 @@ export class ApiService {
);
}
+ getHistoricalTxCountByFlags$(interval: string, bucketSize: string, op?: string, mask?: string) : Observable
> {
+ return this.httpClient.get(
+ this.apiBaseUrl + this.apiBasePath + `/api/v1/goggles/${interval}/${bucketSize}` +
+ (op !== undefined && mask !== undefined ? `/${op}/${mask}` : ''), { observe: 'response' }
+ );
+ }
+
getBlockAudit$(hash: string) : Observable {
this.setBlockAuditLoaded(hash);
return this.httpClient.get(