2021-07-05 16:28:56 -03:00
|
|
|
<div class="container-xl" (window:resize)="onResize($event)">
|
2020-02-16 22:15:07 +07:00
|
|
|
|
2021-05-10 22:16:42 -07:00
|
|
|
<div class="title-block" id="block">
|
2021-08-12 19:49:39 -03:00
|
|
|
<h1>
|
2021-10-11 22:33:20 -03:00
|
|
|
<ng-template [ngIf]="blockHeight === 0" i18n="block.genesis">Genesis
|
|
|
|
|
<span class="next-previous-blocks">
|
2021-08-18 12:49:42 +03:00
|
|
|
<a *ngIf="showNextBlocklink" [routerLink]="['/block/' | relativeUrl, nextBlockHeight]" (click)="navigateToNextBlock()" i18n-ngbTooltip="Next Block" ngbTooltip="Next Block" placement="bottom">
|
2021-08-25 15:44:55 +03:00
|
|
|
<fa-icon [icon]="['fas', 'angle-left']" [fixedWidth]="true"></fa-icon>
|
2021-08-12 19:49:39 -03:00
|
|
|
</a>
|
|
|
|
|
<a [routerLink]="['/block/' | relativeUrl, blockHash]">{{ blockHeight }}</a>
|
|
|
|
|
<span placement="bottom" class="disable">
|
2021-08-25 15:44:55 +03:00
|
|
|
<fa-icon [icon]="['fas', 'angle-right']" [fixedWidth]="true"></fa-icon>
|
2021-08-12 19:49:39 -03:00
|
|
|
</span>
|
2021-10-11 22:33:20 -03:00
|
|
|
</span>
|
2021-08-12 19:49:39 -03:00
|
|
|
</ng-template>
|
2021-10-11 22:33:20 -03:00
|
|
|
<ng-template [ngIf]="blockHeight" i18n="block.block"> Block
|
|
|
|
|
<span class="next-previous-blocks">
|
2021-08-18 12:49:42 +03:00
|
|
|
<a *ngIf="showNextBlocklink" [routerLink]="['/block/' | relativeUrl, nextBlockHeight]" (click)="navigateToNextBlock()" i18n-ngbTooltip="Next Block" ngbTooltip="Next Block" placement="bottom">
|
2021-08-25 15:44:55 +03:00
|
|
|
<fa-icon [icon]="['fas', 'angle-left']" [fixedWidth]="true"></fa-icon>
|
2021-08-12 19:49:39 -03:00
|
|
|
</a>
|
|
|
|
|
<span *ngIf="!showNextBlocklink" placement="bottom" class="disable">
|
2021-08-25 15:44:55 +03:00
|
|
|
<fa-icon [icon]="['fas', 'angle-left']" [fixedWidth]="true"></fa-icon>
|
2021-08-12 19:49:39 -03:00
|
|
|
</span>
|
|
|
|
|
<a [routerLink]="['/block/' | relativeUrl, blockHash]">{{ blockHeight }}</a>
|
2021-08-25 15:44:55 +03:00
|
|
|
<a *ngIf="showPreviousBlocklink && block" [routerLink]="['/block/' | relativeUrl, block.previousblockhash]" (click)="navigateToPreviousBlock()" i18n-ngbTooltip="Previous Block" ngbTooltip="Previous Block" placement="bottom">
|
|
|
|
|
<fa-icon [icon]="['fas', 'angle-right']" [fixedWidth]="true"></fa-icon>
|
2021-08-12 19:49:39 -03:00
|
|
|
</a>
|
|
|
|
|
<span *ngIf="!showPreviousBlocklink" placement="bottom" class="disable">
|
2021-08-25 15:44:55 +03:00
|
|
|
<fa-icon [icon]="['fas', 'angle-right']" [fixedWidth]="true"></fa-icon>
|
2021-08-12 19:49:39 -03:00
|
|
|
</span>
|
2021-10-11 22:33:20 -03:00
|
|
|
</span>
|
2021-08-12 19:49:39 -03:00
|
|
|
</ng-template>
|
|
|
|
|
</h1>
|
|
|
|
|
|
|
|
|
|
<div class="grow"></div>
|
|
|
|
|
|
2021-05-03 10:11:30 -03:00
|
|
|
<button [routerLink]="['/' | relativeUrl]" class="btn btn-sm">✕</button>
|
2020-02-19 23:50:23 +07:00
|
|
|
</div>
|
2020-02-16 22:15:07 +07:00
|
|
|
|
2020-07-19 22:54:31 +07:00
|
|
|
<div class="clearfix"></div>
|
|
|
|
|
|
2020-02-19 23:50:23 +07:00
|
|
|
<ng-template [ngIf]="!isLoadingBlock && !error">
|
|
|
|
|
|
|
|
|
|
<div class="box">
|
|
|
|
|
<div class="row">
|
2020-03-10 14:46:12 +07:00
|
|
|
<div class="col-sm">
|
2020-02-19 23:50:23 +07:00
|
|
|
<table class="table table-borderless table-striped">
|
|
|
|
|
<tbody>
|
2020-05-10 12:31:57 +07:00
|
|
|
<tr>
|
2020-12-02 04:19:33 +09:00
|
|
|
<td class="td-width" i18n="block.hash">Hash</td>
|
2020-05-10 12:31:57 +07:00
|
|
|
<td><a [routerLink]="['/block/' | relativeUrl, block.id]" title="{{ block.id }}">{{ block.id | shortenString : 13 }}</a> <app-clipboard class="d-none d-sm-inline-block" [text]="block.id"></app-clipboard></td>
|
|
|
|
|
</tr>
|
2020-02-19 23:50:23 +07:00
|
|
|
<tr>
|
2020-12-02 04:19:33 +09:00
|
|
|
<td i18n="block.timestamp">Timestamp</td>
|
2020-03-10 14:46:12 +07:00
|
|
|
<td>
|
2021-09-15 10:56:30 +02:00
|
|
|
‎{{ block.timestamp * 1000 | date:'yyyy-MM-dd HH:mm' }}
|
2020-03-10 14:46:12 +07:00
|
|
|
<div class="lg-inline">
|
2021-05-18 11:20:17 -03:00
|
|
|
<i class="symbol">(<app-time-since [time]="block.timestamp" [fastRender]="true"></app-time-since>)</i>
|
2020-03-10 14:46:12 +07:00
|
|
|
</div>
|
|
|
|
|
</td>
|
2020-02-19 23:50:23 +07:00
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2020-12-02 04:19:33 +09:00
|
|
|
<td i18n="block.size">Size</td>
|
2021-09-15 10:56:30 +02:00
|
|
|
<td [innerHTML]="'‎' + (block.size | bytes: 2)"></td>
|
2020-02-19 23:50:23 +07:00
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2020-12-02 04:19:33 +09:00
|
|
|
<td i18n="block.weight">Weight</td>
|
2021-09-15 10:56:30 +02:00
|
|
|
<td [innerHTML]="'‎' + (block.weight | wuBytes: 2)"></td>
|
2020-02-19 23:50:23 +07:00
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
2020-03-10 14:46:12 +07:00
|
|
|
<div class="col-sm">
|
2020-02-19 23:50:23 +07:00
|
|
|
<table class="table table-borderless table-striped">
|
|
|
|
|
<tbody>
|
2020-03-15 17:12:09 +07:00
|
|
|
<tr *ngIf="block.medianFee !== undefined">
|
2020-12-02 04:19:33 +09:00
|
|
|
<td class="td-width" i18n="block.median-fee">Median fee</td>
|
2021-05-03 10:11:30 -03:00
|
|
|
<td>~{{ block.medianFee | number:'1.0-0' }} <span class="symbol" i18n="shared.sat-vbyte|sat/vB">sat/vB</span> <span class="fiat"><app-fiat [value]="block.medianFee * 140" digitsInfo="1.2-2" i18n-ngbTooltip="Transaction fee tooltip" ngbTooltip="Based on average native segwit transaction of 140 vBytes" placement="bottom"></app-fiat></span></td>
|
2020-02-19 23:50:23 +07:00
|
|
|
</tr>
|
2020-03-15 17:12:09 +07:00
|
|
|
<ng-template [ngIf]="fees !== undefined" [ngIfElse]="loadingFees">
|
2020-03-04 15:10:30 +07:00
|
|
|
<tr>
|
2020-12-02 04:19:33 +09:00
|
|
|
<td i18n="block.total-fees|Total fees in a block">Total fees</td>
|
2021-05-03 10:11:30 -03:00
|
|
|
<td *ngIf="network !== 'liquid'; else liquidTotalFees"><app-amount [satoshis]="fees * 100000000" digitsInfo="1.2-2" [noFiat]="true"></app-amount> <span class="fiat"><app-fiat [value]="fees * 100000000" digitsInfo="1.0-0"></app-fiat></span></td>
|
2020-07-23 12:10:22 +07:00
|
|
|
<ng-template #liquidTotalFees>
|
2020-07-23 16:01:28 +07:00
|
|
|
<td>{{ fees * 100000000 | number }} L-sat (<app-fiat [value]="fees * 100000000" digitsInfo="1.2-2"></app-fiat>)</td>
|
2020-07-23 12:10:22 +07:00
|
|
|
</ng-template>
|
2020-03-04 15:10:30 +07:00
|
|
|
</tr>
|
2020-06-19 23:32:17 +07:00
|
|
|
<tr *ngIf="network !== 'liquid'">
|
2020-12-02 04:19:33 +09:00
|
|
|
<td i18n="block.subsidy-and-fees|Total subsidy and fees in a block">Subsidy + fees:</td>
|
2020-03-04 15:10:30 +07:00
|
|
|
<td>
|
2021-05-03 10:11:30 -03:00
|
|
|
<app-amount [satoshis]="(blockSubsidy + fees) * 100000000" digitsInfo="1.2-2" [noFiat]="true"></app-amount> <span class="fiat"><app-fiat [value]="(blockSubsidy + fees) * 100000000" digitsInfo="1.0-0"></app-fiat></span>
|
2020-03-04 15:10:30 +07:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</ng-template>
|
|
|
|
|
<ng-template #loadingFees>
|
|
|
|
|
<tr>
|
2020-12-02 04:19:33 +09:00
|
|
|
<td i18n="block.total-fees|Total fees in a block">Total fees</td>
|
2020-05-10 16:03:22 +07:00
|
|
|
<td style="width: 75%;"><span class="skeleton-loader"></span></td>
|
2020-03-04 15:10:30 +07:00
|
|
|
</tr>
|
2020-07-23 12:10:22 +07:00
|
|
|
<tr *ngIf="network !== 'liquid'">
|
2020-12-02 04:19:33 +09:00
|
|
|
<td i18n="block.subsidy-and-fees|Total subsidy and fees in a block">Subsidy + fees:</td>
|
2020-03-04 15:10:30 +07:00
|
|
|
<td><span class="skeleton-loader"></span></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</ng-template>
|
2020-05-10 00:35:21 +07:00
|
|
|
<tr>
|
2020-12-02 04:19:33 +09:00
|
|
|
<td i18n="block.miner">Miner</td>
|
2020-07-20 10:29:38 +07:00
|
|
|
<td><app-miner [coinbaseTransaction]="coinbaseTx"></app-miner></td>
|
2020-05-10 00:35:21 +07:00
|
|
|
</tr>
|
2020-02-19 23:50:23 +07:00
|
|
|
</tbody>
|
|
|
|
|
</table>
|
2020-02-16 22:15:07 +07:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2020-02-19 23:50:23 +07:00
|
|
|
</div>
|
2020-02-16 22:15:07 +07:00
|
|
|
|
2021-05-10 22:16:42 -07:00
|
|
|
<div [hidden]="!showDetails" id="details">
|
2021-05-01 03:55:02 +04:00
|
|
|
<br>
|
|
|
|
|
|
|
|
|
|
<div class="box">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-sm">
|
|
|
|
|
<table class="table table-borderless table-striped">
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="td-width" i18n="transaction.version">Version</td>
|
2021-05-01 21:03:01 +04:00
|
|
|
<td>{{ block.version | decimal2hex }} <span *ngIf="displayTaprootStatus() && hasTaproot(block.version)" class="badge badge-success ml-1" >Taproot</span></td>
|
2021-05-01 03:55:02 +04:00
|
|
|
</tr>
|
2021-06-16 09:48:46 -07:00
|
|
|
<tr *ngIf="network !== 'liquid'">
|
2021-05-01 03:55:02 +04:00
|
|
|
<td i18n="block.bits">Bits</td>
|
|
|
|
|
<td>{{ block.bits | decimal2hex }}</td>
|
|
|
|
|
</tr>
|
2021-08-03 18:35:49 +03:00
|
|
|
<tr>
|
|
|
|
|
<td i18n="block.merkle-root">Merkle root</td>
|
|
|
|
|
<td><p class="break-all">{{ block.merkle_root }}</p></td>
|
|
|
|
|
</tr>
|
2021-05-01 03:55:02 +04:00
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
2021-06-16 09:48:46 -07:00
|
|
|
<div class="col-sm" *ngIf="network !== 'liquid'">
|
2021-05-01 03:55:02 +04:00
|
|
|
<table class="table table-borderless table-striped">
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="td-width" i18n="block.difficulty">Difficulty</td>
|
|
|
|
|
<td>{{ block.difficulty }}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td i18n="block.nonce">Nonce</td>
|
|
|
|
|
<td>{{ block.nonce | decimal2hex }}</td>
|
|
|
|
|
</tr>
|
2021-07-19 04:56:16 +05:30
|
|
|
<tr>
|
|
|
|
|
<td i18n="block.header">Block Header Hex</td>
|
2021-08-06 23:45:54 +03:00
|
|
|
<td><a target="_blank" href="{{ network === '' ? '' : '/' + network }}/api/block/{{block.id}}/header"><fa-icon [icon]="['fas', 'external-link-alt']" [fixedWidth]="true"></fa-icon></a></td>
|
2021-07-19 04:56:16 +05:30
|
|
|
</tr>
|
2021-05-01 03:55:02 +04:00
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="text-right mt-3">
|
2021-07-16 09:33:22 -03:00
|
|
|
<button type="button" class="btn btn-outline-info btn-sm btn-details" (click)="toggleShowDetails()" i18n="transaction.details|Transaction Details">Details</button>
|
2021-05-01 03:55:02 +04:00
|
|
|
</div>
|
|
|
|
|
|
2021-07-16 09:33:22 -03:00
|
|
|
<div #blockTxTitle id="block-tx-title" class="block-tx-title">
|
2021-10-26 21:47:17 -03:00
|
|
|
<h2>
|
2021-07-05 16:28:56 -03:00
|
|
|
<ng-container *ngTemplateOutlet="block.tx_count === 1 ? transactionsSingular : transactionsPlural; context: {$implicit: block.tx_count | number}"></ng-container>
|
|
|
|
|
<ng-template #transactionsSingular let-i i18n="shared.transaction-count.singular">{{ i }} transaction</ng-template>
|
|
|
|
|
<ng-template #transactionsPlural let-i i18n="shared.transaction-count.plural">{{ i }} transactions</ng-template>
|
|
|
|
|
</h2>
|
2020-02-16 22:15:07 +07:00
|
|
|
|
2021-09-15 10:56:30 +02:00
|
|
|
<ngb-pagination class="pagination-container float-right" [collectionSize]="block.tx_count" [rotate]="true" [pageSize]="itemsPerPage" [(page)]="page" (pageChange)="pageChange(page, blockTxTitle)" [maxSize]="paginationMaxSize" [boundaryLinks]="true" [ellipses]="false"></ngb-pagination>
|
2021-07-05 16:28:56 -03:00
|
|
|
</div>
|
2020-05-30 21:18:53 +07:00
|
|
|
<div class="clearfix"></div>
|
|
|
|
|
|
|
|
|
|
<app-transactions-list [transactions]="transactions"></app-transactions-list>
|
|
|
|
|
|
|
|
|
|
<ng-template [ngIf]="isLoadingTransactions">
|
2021-10-12 08:57:00 -03:00
|
|
|
<div class="text-center mb-4" class="tx-skeleton">
|
2020-03-11 16:06:11 +07:00
|
|
|
|
2021-10-12 08:57:00 -03:00
|
|
|
<div class="header-bg box">
|
2020-03-11 16:06:11 +07:00
|
|
|
<span class="skeleton-loader"></span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="header-bg box">
|
2021-10-12 08:57:00 -03:00
|
|
|
<div class="row">
|
2020-03-11 16:06:11 +07:00
|
|
|
<div class="col-sm">
|
|
|
|
|
<span class="skeleton-loader"></span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm">
|
|
|
|
|
<span class="skeleton-loader"></span>
|
2020-05-30 21:18:53 +07:00
|
|
|
<span class="skeleton-loader"></span>
|
2020-03-11 16:06:11 +07:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2021-01-08 21:44:36 +07:00
|
|
|
|
|
|
|
|
<ng-container *ngIf="(txsLoadingStatus$ | async) as txsLoadingStatus">
|
|
|
|
|
<br>
|
2021-01-12 20:45:41 +07:00
|
|
|
<div class="progress progress-dark">
|
2021-01-08 21:44:36 +07:00
|
|
|
<div class="progress-bar progress-darklight" role="progressbar" [ngStyle]="{'width': txsLoadingStatus + '%' }"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</ng-container>
|
2021-10-11 22:33:20 -03:00
|
|
|
|
2020-05-30 21:18:53 +07:00
|
|
|
</div>
|
|
|
|
|
</ng-template>
|
2021-07-16 09:33:22 -03:00
|
|
|
<ngb-pagination class="pagination-container float-right" [collectionSize]="block.tx_count" [rotate]="true" [pageSize]="itemsPerPage" [(page)]="page" (pageChange)="pageChange(page, blockTxTitle)" [maxSize]="paginationMaxSize" [boundaryLinks]="true" [ellipses]="false"></ngb-pagination>
|
2020-02-16 22:15:07 +07:00
|
|
|
|
2020-02-19 23:50:23 +07:00
|
|
|
</ng-template>
|
|
|
|
|
|
|
|
|
|
<ng-template [ngIf]="isLoadingBlock && !error">
|
2021-10-11 22:33:20 -03:00
|
|
|
|
2020-02-19 23:50:23 +07:00
|
|
|
<div class="box">
|
|
|
|
|
<div class="row">
|
2020-03-10 14:46:12 +07:00
|
|
|
<div class="col-sm">
|
2020-02-19 23:50:23 +07:00
|
|
|
<table class="table table-borderless table-striped">
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
2020-03-25 00:41:46 +07:00
|
|
|
<td class="td-width" colspan="2"><span class="skeleton-loader"></span></td>
|
2020-02-19 23:50:23 +07:00
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2"><span class="skeleton-loader"></span></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2"><span class="skeleton-loader"></span></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2"><span class="skeleton-loader"></span></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
2020-03-10 14:46:12 +07:00
|
|
|
<div class="col-sm">
|
2020-02-19 23:50:23 +07:00
|
|
|
<table class="table table-borderless table-striped">
|
|
|
|
|
<tbody>
|
2020-03-10 14:46:12 +07:00
|
|
|
<tr>
|
2020-03-25 00:41:46 +07:00
|
|
|
<td class="td-width" colspan="2"><span class="skeleton-loader"></span></td>
|
2020-03-10 14:46:12 +07:00
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2"><span class="skeleton-loader"></span></td>
|
|
|
|
|
</tr>
|
2020-02-19 23:50:23 +07:00
|
|
|
<tr>
|
|
|
|
|
<td colspan="2"><span class="skeleton-loader"></span></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2"><span class="skeleton-loader"></span></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
2020-02-16 22:15:07 +07:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2020-02-19 23:50:23 +07:00
|
|
|
</div>
|
|
|
|
|
</ng-template>
|
|
|
|
|
|
|
|
|
|
<ng-template [ngIf]="error">
|
|
|
|
|
<div class="text-center">
|
2020-12-02 04:19:33 +09:00
|
|
|
<span i18n="block.error.loading-block-data">Error loading block data.</span>
|
2020-07-18 13:09:57 +07:00
|
|
|
<br><br>
|
2020-02-19 23:50:23 +07:00
|
|
|
<i>{{ error.error }}</i>
|
|
|
|
|
</div>
|
|
|
|
|
</ng-template>
|
2020-02-16 22:15:07 +07:00
|
|
|
|
2020-02-19 23:50:23 +07:00
|
|
|
</div>
|
2020-02-16 22:15:07 +07:00
|
|
|
|
2020-03-13 23:03:46 +09:00
|
|
|
<br>
|
2020-05-30 21:18:53 +07:00
|
|
|
<br>
|