2020-03-05 10:13:46 +01:00
|
|
|
<div class="container-xl">
|
2020-02-16 16:15:07 +01:00
|
|
|
|
2020-02-19 17:50:23 +01:00
|
|
|
<div class="title-block">
|
2020-03-13 15:03:46 +01:00
|
|
|
<h1>Block <ng-template [ngIf]="blockHeight"><a [routerLink]="['/block/', blockHash]">{{ blockHeight }}</a></ng-template></h1>
|
2020-02-19 17:50:23 +01:00
|
|
|
</div>
|
2020-02-16 16:15:07 +01:00
|
|
|
|
2020-02-19 17:50:23 +01:00
|
|
|
<ng-template [ngIf]="!isLoadingBlock && !error">
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<div class="box">
|
|
|
|
<div class="row">
|
2020-03-10 08:46:12 +01:00
|
|
|
<div class="col-sm">
|
2020-02-19 17:50:23 +01:00
|
|
|
<table class="table table-borderless table-striped">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
2020-03-10 08:46:12 +01:00
|
|
|
<td class="mobile-width">Timestamp</td>
|
|
|
|
<td>
|
|
|
|
{{ block.timestamp * 1000 | date:'yyyy-MM-dd HH:mm' }}
|
|
|
|
<div class="lg-inline">
|
|
|
|
<i>(<app-time-since [time]="block.timestamp"></app-time-since> ago)</i>
|
|
|
|
</div>
|
|
|
|
</td>
|
2020-02-19 17:50:23 +01:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2020-03-10 08:46:12 +01:00
|
|
|
<td>Transactions</td>
|
2020-02-19 17:50:23 +01:00
|
|
|
<td>{{ block.tx_count }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Size</td>
|
|
|
|
<td>{{ block.size | bytes: 2 }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Weight</td>
|
|
|
|
<td>{{ block.weight | wuBytes: 2 }}</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2020-03-10 08:46:12 +01:00
|
|
|
<div class="col-sm">
|
2020-02-19 17:50:23 +01:00
|
|
|
<table class="table table-borderless table-striped">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
2020-03-10 08:46:12 +01:00
|
|
|
<td class="mobile-width">Hash</td>
|
2020-03-20 21:38:18 +01:00
|
|
|
<td><a [routerLink]="['/block/', block.id]" title="{{ block.id }}">{{ block.id | shortenString : 13 }}</a> <app-clipboard [text]="block.id"></app-clipboard></td>
|
2020-02-19 17:50:23 +01:00
|
|
|
</tr>
|
2020-03-15 11:12:09 +01:00
|
|
|
<tr *ngIf="block.medianFee !== undefined">
|
|
|
|
<td>Median fee</td>
|
|
|
|
<td>~{{ block.medianFee | ceil }} sats/vB (<app-fiat [value]="block.medianFee * 250" digitsInfo="1.2-2"></app-fiat>)</td>
|
2020-02-19 17:50:23 +01:00
|
|
|
</tr>
|
2020-03-15 11:12:09 +01:00
|
|
|
<ng-template [ngIf]="fees !== undefined" [ngIfElse]="loadingFees">
|
2020-03-04 09:10:30 +01:00
|
|
|
<tr>
|
|
|
|
<td>Total fees</td>
|
2020-03-04 09:55:54 +01:00
|
|
|
<td><span title="{{ fees | number: '1.2-8' }} BTC">{{ fees | number: '1.2-2' }} BTC</span> (<app-fiat [value]="fees * 100000000" digitsInfo="1.0-0"></app-fiat>)</td>
|
2020-03-04 09:10:30 +01:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Reward + fees:</td>
|
|
|
|
<td>
|
2020-03-04 09:55:54 +01:00
|
|
|
<span title="{{ blockSubsidy + fees | number: '1.2-8' }} BTC">{{ blockSubsidy + fees | number: '1.2-2' }} BTC</span> (<app-fiat [value]="(blockSubsidy + fees) * 100000000" digitsInfo="1.0-0"></app-fiat>)
|
2020-03-04 09:10:30 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</ng-template>
|
|
|
|
<ng-template #loadingFees>
|
|
|
|
<tr>
|
|
|
|
<td>Total fees</td>
|
|
|
|
<td><span class="skeleton-loader"></span></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Reward + fees:</td>
|
|
|
|
<td><span class="skeleton-loader"></span></td>
|
|
|
|
</tr>
|
|
|
|
</ng-template>
|
2020-02-19 17:50:23 +01:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2020-02-16 16:15:07 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-02-19 17:50:23 +01:00
|
|
|
</div>
|
2020-02-16 16:15:07 +01:00
|
|
|
|
2020-02-19 17:50:23 +01:00
|
|
|
<br>
|
2020-02-16 16:15:07 +01:00
|
|
|
|
2020-02-19 17:50:23 +01:00
|
|
|
<h2><ng-template [ngIf]="transactions?.length">{{ transactions?.length || '?' }} of </ng-template>{{ block.tx_count }} transactions</h2>
|
2020-02-16 16:15:07 +01:00
|
|
|
|
2020-02-19 17:50:23 +01:00
|
|
|
<br>
|
2020-02-16 16:15:07 +01:00
|
|
|
|
2020-02-29 21:32:12 +01:00
|
|
|
<app-transactions-list [transactions]="transactions" (loadMore)="loadMore()"></app-transactions-list>
|
2020-02-16 16:15:07 +01:00
|
|
|
|
2020-02-19 17:50:23 +01:00
|
|
|
<div class="text-center">
|
|
|
|
<ng-template [ngIf]="isLoadingTransactions">
|
2020-03-11 10:06:11 +01:00
|
|
|
|
|
|
|
<div class="header-bg box" style="padding: 10px; margin-bottom: 10px;">
|
|
|
|
<span class="skeleton-loader"></span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="header-bg box">
|
|
|
|
<div class="row" style="height: 107px;">
|
|
|
|
<div class="col-sm">
|
|
|
|
<span class="skeleton-loader"></span>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm">
|
|
|
|
<span class="skeleton-loader"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-02-19 17:50:23 +01:00
|
|
|
</ng-template>
|
|
|
|
</div>
|
2020-02-16 16:15:07 +01:00
|
|
|
|
2020-02-19 17:50:23 +01:00
|
|
|
</ng-template>
|
|
|
|
|
|
|
|
<ng-template [ngIf]="isLoadingBlock && !error">
|
|
|
|
|
|
|
|
<br>
|
2020-02-16 16:15:07 +01:00
|
|
|
|
2020-02-19 17:50:23 +01:00
|
|
|
<div class="box">
|
|
|
|
<div class="row">
|
2020-03-10 08:46:12 +01:00
|
|
|
<div class="col-sm">
|
2020-02-19 17:50:23 +01:00
|
|
|
<table class="table table-borderless table-striped">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
2020-03-10 08:46:12 +01:00
|
|
|
<td class="mobile-width" colspan="2"><span class="skeleton-loader"></span></td>
|
2020-02-19 17:50:23 +01: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 08:46:12 +01:00
|
|
|
<div class="col-sm">
|
2020-02-19 17:50:23 +01:00
|
|
|
<table class="table table-borderless table-striped">
|
|
|
|
<tbody>
|
2020-03-10 08:46:12 +01:00
|
|
|
<tr>
|
|
|
|
<td class="mobile-width" colspan="2"><span class="skeleton-loader"></span></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2"><span class="skeleton-loader"></span></td>
|
|
|
|
</tr>
|
2020-02-19 17:50:23 +01: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 16:15:07 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-02-19 17:50:23 +01:00
|
|
|
</div>
|
|
|
|
</ng-template>
|
|
|
|
|
|
|
|
<ng-template [ngIf]="error">
|
|
|
|
<div class="text-center">
|
|
|
|
Error loading block data.
|
2020-02-16 16:15:07 +01:00
|
|
|
<br>
|
2020-02-19 17:50:23 +01:00
|
|
|
<i>{{ error.error }}</i>
|
|
|
|
</div>
|
|
|
|
</ng-template>
|
2020-02-16 16:15:07 +01:00
|
|
|
|
2020-02-19 17:50:23 +01:00
|
|
|
</div>
|
2020-02-16 16:15:07 +01:00
|
|
|
|
2020-03-13 15:03:46 +01:00
|
|
|
<br>
|