| 
									
										
										
										
											2020-02-16 22:15:07 +07:00
										 |  |  | <ng-container *ngFor="let tx of transactions; let i = index; trackBy: trackByFn"> | 
					
						
							|  |  |  |   <div *ngIf="!transactionPage" class="header-bg box" style="padding: 10px; margin-bottom: 10px;"> | 
					
						
							| 
									
										
										
										
											2020-05-09 20:37:50 +07:00
										 |  |  |     <a [routerLink]="['/tx/' | relativeUrl, tx.txid]" [state]="{ data: tx }"> | 
					
						
							| 
									
										
										
										
											2020-03-25 02:55:26 +07:00
										 |  |  |       <span style="float: left;" class="d-block d-md-none">{{ tx.txid | shortenString : 16 }}</span> | 
					
						
							| 
									
										
										
										
											2020-03-10 14:46:12 +07:00
										 |  |  |       <span style="float: left;" class="d-none d-md-block">{{ tx.txid }}</span> | 
					
						
							|  |  |  |     </a> | 
					
						
							| 
									
										
										
										
											2020-02-28 01:09:07 +07:00
										 |  |  |     <div class="float-right"> | 
					
						
							|  |  |  |       <ng-template [ngIf]="tx.status.confirmed">{{ tx.status.block_time * 1000 | date:'yyyy-MM-dd HH:mm' }}</ng-template> | 
					
						
							|  |  |  |       <ng-template [ngIf]="!tx.status.confirmed && tx.firstSeen"> | 
					
						
							| 
									
										
										
										
											2020-03-23 04:07:31 +07:00
										 |  |  |         <i><app-time-since [time]="tx.firstSeen" [fastRender]="true"></app-time-since> ago</i> | 
					
						
							| 
									
										
										
										
											2020-02-28 01:09:07 +07:00
										 |  |  |       </ng-template> | 
					
						
							|  |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2020-05-17 17:06:09 +07:00
										 |  |  |     <div class="clearfix"></div> | 
					
						
							| 
									
										
										
										
											2020-02-16 22:15:07 +07:00
										 |  |  |   </div> | 
					
						
							| 
									
										
										
										
											2020-03-01 16:33:18 +07:00
										 |  |  |   <div class="header-bg box" infiniteScroll [alwaysCallback]="true" [fromRoot]="true" [infiniteScrollContainer]="'body'" [infiniteScrollDistance]="2" [infiniteScrollUpDistance]="1.5" [infiniteScrollThrottle]="50" (scrolled)="onScroll()"> | 
					
						
							| 
									
										
										
										
											2020-02-16 22:15:07 +07:00
										 |  |  |     <div class="row"> | 
					
						
							|  |  |  |       <div class="col"> | 
					
						
							|  |  |  |         <table class="table table-borderless smaller-text table-xs" style="margin: 0;"> | 
					
						
							|  |  |  |           <tbody> | 
					
						
							| 
									
										
										
										
											2020-03-27 02:34:09 +07:00
										 |  |  |             <tr *ngFor="let vin of getFilteredTxVin(tx)"> | 
					
						
							| 
									
										
										
										
											2020-02-16 22:15:07 +07:00
										 |  |  |               <td class="arrow-td"> | 
					
						
							| 
									
										
										
										
											2020-05-09 20:37:50 +07:00
										 |  |  |                 <ng-template [ngIf]="vin.prevout === null && !vin.is_pegin" [ngIfElse]="hasPrevout"> | 
					
						
							| 
									
										
										
										
											2020-02-17 20:39:20 +07:00
										 |  |  |                   <i class="arrow grey"></i> | 
					
						
							|  |  |  |                 </ng-template> | 
					
						
							|  |  |  |                 <ng-template #hasPrevout> | 
					
						
							| 
									
										
										
										
											2020-05-09 20:37:50 +07:00
										 |  |  |                   <a *ngIf="vin.is_pegin; else defaultPrevout" [routerLink]="['/tx/', vin.txid]"> | 
					
						
							| 
									
										
										
										
											2020-04-14 15:35:20 +07:00
										 |  |  |                     <i class="arrow red"></i> | 
					
						
							| 
									
										
										
										
											2020-02-17 20:39:20 +07:00
										 |  |  |                   </a> | 
					
						
							| 
									
										
										
										
											2020-05-09 20:37:50 +07:00
										 |  |  |                   <ng-template #defaultPrevout> | 
					
						
							|  |  |  |                     <a [routerLink]="['/tx/' | relativeUrl, vin.txid]"> | 
					
						
							|  |  |  |                       <i class="arrow red"></i> | 
					
						
							|  |  |  |                     </a> | 
					
						
							|  |  |  |                   </ng-template> | 
					
						
							| 
									
										
										
										
											2020-02-17 20:39:20 +07:00
										 |  |  |                 </ng-template> | 
					
						
							| 
									
										
										
										
											2020-02-16 22:15:07 +07:00
										 |  |  |               </td> | 
					
						
							|  |  |  |               <td> | 
					
						
							| 
									
										
										
										
											2020-05-02 16:29:34 +07:00
										 |  |  |                 <div [ngSwitch]="true"> | 
					
						
							| 
									
										
										
										
											2020-06-06 23:50:08 +07:00
										 |  |  |                   <ng-container *ngSwitchCase="vin.is_coinbase"><a placement="bottom" [ngbTooltip]="vin.scriptsig | hex2ascii">Coinbase<ng-template [ngIf]="network !== 'liquid'"> (Newly Generated Coins)</ng-template></a><br><span class="badge badge-secondary scriptmessage longer">{{ vin.scriptsig | hex2ascii }}</span></ng-container> | 
					
						
							| 
									
										
										
										
											2020-05-09 20:37:50 +07:00
										 |  |  |                   <ng-container *ngSwitchCase="vin.is_pegin"> | 
					
						
							|  |  |  |                     Peg-in | 
					
						
							|  |  |  |                   </ng-container> | 
					
						
							| 
									
										
										
										
											2020-05-02 16:29:34 +07:00
										 |  |  |                   <ng-container *ngSwitchDefault> | 
					
						
							| 
									
										
										
										
											2020-05-09 20:37:50 +07:00
										 |  |  |                     <a [routerLink]="['/address/' | relativeUrl, vin.prevout.scriptpubkey_address]" title="{{ vin.prevout.scriptpubkey_address }}"> | 
					
						
							| 
									
										
										
										
											2020-03-10 15:25:49 +07:00
										 |  |  |                       <span class="d-block d-lg-none">{{ vin.prevout.scriptpubkey_address | shortenString : 16 }}</span> | 
					
						
							| 
									
										
										
										
											2020-05-17 17:06:09 +07:00
										 |  |  |                       <span class="d-none d-lg-block">{{ vin.prevout.scriptpubkey_address | shortenString : 35 }}</span> | 
					
						
							| 
									
										
										
										
											2020-03-10 14:46:12 +07:00
										 |  |  |                     </a> | 
					
						
							| 
									
										
										
										
											2020-02-16 22:15:07 +07:00
										 |  |  |                     <div> | 
					
						
							|  |  |  |                       <app-address-labels [vin]="vin"></app-address-labels> | 
					
						
							|  |  |  |                     </div> | 
					
						
							| 
									
										
										
										
											2020-05-02 16:29:34 +07:00
										 |  |  |                   </ng-container> | 
					
						
							| 
									
										
										
										
											2020-02-16 22:15:07 +07:00
										 |  |  |                 </div> | 
					
						
							|  |  |  |               </td> | 
					
						
							|  |  |  |               <td class="text-right nowrap"> | 
					
						
							| 
									
										
										
										
											2020-06-12 16:17:52 +07:00
										 |  |  |                 <ng-template [ngIf]="vin.prevout && vin.prevout.asset && vin.prevout.asset !== nativeAssetId" [ngIfElse]="defaultOutput"> | 
					
						
							|  |  |  |                   <div *ngIf="assetsMinimal && assetsMinimal[vin.prevout.asset]"> | 
					
						
							|  |  |  |                     <ng-container *ngTemplateOutlet="assetBox; context:{ $implicit: vin.prevout }"></ng-container> | 
					
						
							|  |  |  |                   </div> | 
					
						
							|  |  |  |                 </ng-template> | 
					
						
							|  |  |  |                 <ng-template #defaultOutput> | 
					
						
							|  |  |  |                   <app-amount *ngIf="vin.prevout" [satoshis]="vin.prevout.value"></app-amount> | 
					
						
							|  |  |  |                 </ng-template> | 
					
						
							| 
									
										
										
										
											2020-02-16 22:15:07 +07:00
										 |  |  |               </td> | 
					
						
							|  |  |  |             </tr> | 
					
						
							| 
									
										
										
										
											2020-03-27 02:34:09 +07:00
										 |  |  |             <tr *ngIf="tx.vin.length > tx['@vinLength']"> | 
					
						
							|  |  |  |               <td colspan="3" class="text-center"> | 
					
						
							| 
									
										
										
										
											2020-05-10 17:44:19 +07:00
										 |  |  |                 <button class="btn btn-sm btn-primary mt-2" (click)="loadMoreVin(tx)">Load more ({{ tx.vin.length - tx['@vinLength'] }})</button> | 
					
						
							| 
									
										
										
										
											2020-03-27 02:34:09 +07:00
										 |  |  |               </td> | 
					
						
							|  |  |  |             </tr> | 
					
						
							| 
									
										
										
										
											2020-02-16 22:15:07 +07:00
										 |  |  |           </tbody> | 
					
						
							|  |  |  |         </table> | 
					
						
							|  |  |  |       </div> | 
					
						
							| 
									
										
										
										
											2020-05-28 15:50:19 +07:00
										 |  |  |       <div class="w-100 d-block d-md-none"></div> | 
					
						
							| 
									
										
										
										
											2020-03-10 14:46:12 +07:00
										 |  |  |       <div class="col mobile-bottomcol"> | 
					
						
							| 
									
										
										
										
											2020-03-10 15:25:49 +07:00
										 |  |  |         <table class="table table-borderless smaller-text table-xs"  style="margin: 0;"> | 
					
						
							| 
									
										
										
										
											2020-02-16 22:15:07 +07:00
										 |  |  |           <tbody> | 
					
						
							| 
									
										
										
										
											2020-03-27 02:34:09 +07:00
										 |  |  |             <tr *ngFor="let vout of getFilteredTxVout(tx); let vindex = index;"> | 
					
						
							| 
									
										
										
										
											2020-02-16 22:15:07 +07:00
										 |  |  |               <td> | 
					
						
							| 
									
										
										
										
											2020-05-09 20:37:50 +07:00
										 |  |  |                 <a *ngIf="vout.scriptpubkey_address; else scriptpubkey_type" [routerLink]="['/address/' | relativeUrl, vout.scriptpubkey_address]" title="{{ vout.scriptpubkey_address }}"> | 
					
						
							| 
									
										
										
										
											2020-03-10 14:46:12 +07:00
										 |  |  |                   <span class="d-block d-lg-none">{{ vout.scriptpubkey_address | shortenString : 16 }}</span> | 
					
						
							| 
									
										
										
										
											2020-05-17 17:06:09 +07:00
										 |  |  |                   <span class="d-none d-lg-block">{{ vout.scriptpubkey_address | shortenString : 35 }}</span> | 
					
						
							| 
									
										
										
										
											2020-03-10 14:46:12 +07:00
										 |  |  |                 </a> | 
					
						
							| 
									
										
										
										
											2020-02-16 22:15:07 +07:00
										 |  |  |                 <ng-template #scriptpubkey_type> | 
					
						
							| 
									
										
										
										
											2020-05-02 16:29:34 +07:00
										 |  |  |                   <ng-template [ngIf]="vout.pegout" [ngIfElse]="defaultscriptpubkey_type"> | 
					
						
							| 
									
										
										
										
											2020-05-09 20:37:50 +07:00
										 |  |  |                     Peg-out to <a [routerLink]="['/address/', vout.pegout.scriptpubkey_address]" title="{{ vout.pegout.scriptpubkey_address }}"> | 
					
						
							|  |  |  |                       <span class="d-block d-lg-none">{{ vout.pegout.scriptpubkey_address | shortenString : 16 }}</span> | 
					
						
							| 
									
										
										
										
											2020-05-17 17:06:09 +07:00
										 |  |  |                       <span class="d-none d-lg-block">{{ vout.pegout.scriptpubkey_address | shortenString : 35 }}</span> | 
					
						
							| 
									
										
										
										
											2020-05-09 20:37:50 +07:00
										 |  |  |                     </a> | 
					
						
							| 
									
										
										
										
											2020-05-02 16:29:34 +07:00
										 |  |  |                   </ng-template> | 
					
						
							|  |  |  |                   <ng-template #defaultscriptpubkey_type> | 
					
						
							| 
									
										
										
										
											2020-06-06 23:50:08 +07:00
										 |  |  |                     <a placement="bottom" [ngbTooltip]="vout.scriptpubkey | hex2ascii">{{ vout.scriptpubkey_type | scriptpubkeyType }}</a> <span class="badge badge-secondary scriptmessage">{{ vout.scriptpubkey_asm | hex2ascii }}</span> | 
					
						
							| 
									
										
										
										
											2020-05-02 16:29:34 +07:00
										 |  |  |                   </ng-template> | 
					
						
							| 
									
										
										
										
											2020-02-16 22:15:07 +07:00
										 |  |  |                 </ng-template> | 
					
						
							|  |  |  |               </td> | 
					
						
							|  |  |  |               <td class="text-right nowrap"> | 
					
						
							| 
									
										
										
										
											2020-06-12 16:17:52 +07:00
										 |  |  |                 <ng-template [ngIf]="vout.asset && vout.asset !== nativeAssetId" [ngIfElse]="defaultOutput"> | 
					
						
							| 
									
										
										
										
											2020-05-02 12:36:35 +07:00
										 |  |  |                   <div *ngIf="assetsMinimal && assetsMinimal[vout.asset]"> | 
					
						
							| 
									
										
										
										
											2020-06-12 16:17:52 +07:00
										 |  |  |                     <ng-container *ngTemplateOutlet="assetBox; context:{ $implicit: vout }"></ng-container> | 
					
						
							| 
									
										
										
										
											2020-05-02 12:36:35 +07:00
										 |  |  |                 </div> | 
					
						
							|  |  |  |                 </ng-template> | 
					
						
							|  |  |  |                 <ng-template #defaultOutput> | 
					
						
							|  |  |  |                   <app-amount [satoshis]="vout.value"></app-amount> | 
					
						
							|  |  |  |                 </ng-template> | 
					
						
							| 
									
										
										
										
											2020-02-16 22:15:07 +07:00
										 |  |  |               </td> | 
					
						
							|  |  |  |               <td class="pl-1 arrow-td"> | 
					
						
							| 
									
										
										
										
											2020-05-02 12:36:35 +07:00
										 |  |  |                 <i *ngIf="!outspends[i] || vout.scriptpubkey_type === 'op_return' || vout.scriptpubkey_type === 'fee' ; else outspend" class="arrow grey"></i> | 
					
						
							| 
									
										
										
										
											2020-02-16 22:15:07 +07:00
										 |  |  |                 <ng-template #outspend> | 
					
						
							| 
									
										
										
										
											2020-04-14 15:35:20 +07:00
										 |  |  |                   <i *ngIf="!outspends[i][vindex] || !outspends[i][vindex].spent; else spent" class="arrow green"></i> | 
					
						
							| 
									
										
										
										
											2020-02-16 22:15:07 +07:00
										 |  |  |                   <ng-template #spent> | 
					
						
							| 
									
										
										
										
											2020-05-09 20:37:50 +07:00
										 |  |  |                     <a [routerLink]="['/tx/' | relativeUrl, outspends[i][vindex].txid]"><i class="arrow red"></i></a> | 
					
						
							| 
									
										
										
										
											2020-02-16 22:15:07 +07:00
										 |  |  |                   </ng-template> | 
					
						
							|  |  |  |                 </ng-template> | 
					
						
							|  |  |  |               </td> | 
					
						
							|  |  |  |             </tr> | 
					
						
							| 
									
										
										
										
											2020-03-27 02:34:09 +07:00
										 |  |  |             <tr *ngIf="tx.vout.length > tx['@voutLength']"> | 
					
						
							|  |  |  |               <td colspan="3" class="text-center"> | 
					
						
							| 
									
										
										
										
											2020-05-12 14:49:29 +07:00
										 |  |  |                 <button class="btn btn-sm btn-primary mt-2" (click)="loadMoreVout(tx)">Load more ({{ tx.vout.length - tx['@voutLength'] }})</button> | 
					
						
							| 
									
										
										
										
											2020-03-27 02:34:09 +07:00
										 |  |  |               </td> | 
					
						
							|  |  |  |             </tr> | 
					
						
							| 
									
										
										
										
											2020-02-16 22:15:07 +07:00
										 |  |  |           </tbody> | 
					
						
							|  |  |  |         </table> | 
					
						
							|  |  |  |       </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2020-05-21 01:55:46 +07:00
										 |  |  | 
 | 
					
						
							|  |  |  |     <div> | 
					
						
							|  |  |  |       <div class="float-left mt-2-5" *ngIf="!transactionPage && tx.fee"> | 
					
						
							|  |  |  |         {{ tx.fee / (tx.weight / 4) | number : '1.1-1' }} sat/vB <span class="d-none d-sm-inline-block"> – {{ tx.fee | number }} sat (<app-fiat [value]="tx.fee"></app-fiat>)</span> | 
					
						
							|  |  |  |       </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       <div class="float-right"> | 
					
						
							| 
									
										
										
										
											2020-06-10 23:52:14 +07:00
										 |  |  |         <span *ngIf="showConfirmations && latestBlock"> | 
					
						
							| 
									
										
										
										
											2020-05-21 01:55:46 +07:00
										 |  |  |           <button *ngIf="tx.status.confirmed; else unconfirmedButton" type="button" class="btn btn-sm btn-success mt-2">{{ latestBlock.height - tx.status.block_height + 1 }} confirmation<ng-container *ngIf="latestBlock.height - tx.status.block_height + 1 > 1">s</ng-container></button> | 
					
						
							|  |  |  |           <ng-template #unconfirmedButton> | 
					
						
							|  |  |  |             <button type="button" class="btn btn-sm btn-danger mt-2">Unconfirmed</button> | 
					
						
							|  |  |  |           </ng-template> | 
					
						
							|  |  |  |             | 
					
						
							|  |  |  |         </span> | 
					
						
							|  |  |  |         <button type="button" class="btn btn-sm btn-primary mt-2" (click)="switchCurrency()"> | 
					
						
							|  |  |  |           <ng-template [ngIf]="network === 'liquid'" [ngIfElse]="defaultAmount">Confidential</ng-template> | 
					
						
							|  |  |  |           <ng-template #defaultAmount> | 
					
						
							|  |  |  |             <app-amount [satoshis]="getTotalTxOutput(tx)"></app-amount> | 
					
						
							|  |  |  |           </ng-template> | 
					
						
							|  |  |  |         </button> | 
					
						
							|  |  |  |       </div> | 
					
						
							|  |  |  |       <div class="clearfix"></div> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-02-16 22:15:07 +07:00
										 |  |  |   </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   <br> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | </ng-container> | 
					
						
							| 
									
										
										
										
											2020-06-12 16:17:52 +07:00
										 |  |  | 
 | 
					
						
							|  |  |  | <ng-template #assetBox let-item> | 
					
						
							|  |  |  |   {{ item.value / 100000000 | number: '1.0-' + assetsMinimal[item.asset][3] }} {{ assetsMinimal[item.asset][1] }} | 
					
						
							|  |  |  |   <br> | 
					
						
							|  |  |  |   {{ assetsMinimal[item.asset][0] }} | 
					
						
							|  |  |  |   <br> | 
					
						
							|  |  |  |   <a [routerLink]="['/asset/' | relativeUrl, item.asset]">{{ item.asset | shortenString : 13 }}</a> | 
					
						
							|  |  |  |   <br><br> | 
					
						
							|  |  |  | </ng-template> |