| 
									
										
										
										
											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-03-10 14:46:12 +07:00
										 |  |  |     <a [routerLink]="['/tx/', 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-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> | 
					
						
							|  |  |  |             <tr *ngFor="let vin of tx.vin"> | 
					
						
							|  |  |  |               <td class="arrow-td"> | 
					
						
							| 
									
										
										
										
											2020-02-17 20:39:20 +07:00
										 |  |  |                 <ng-template [ngIf]="vin.prevout === null" [ngIfElse]="hasPrevout"> | 
					
						
							|  |  |  |                   <i class="arrow grey"></i> | 
					
						
							|  |  |  |                 </ng-template> | 
					
						
							|  |  |  |                 <ng-template #hasPrevout> | 
					
						
							|  |  |  |                   <a [routerLink]="['/tx/', vin.txid]"> | 
					
						
							|  |  |  |                     <i class="arrow green"></i> | 
					
						
							|  |  |  |                   </a> | 
					
						
							|  |  |  |                 </ng-template> | 
					
						
							| 
									
										
										
										
											2020-02-16 22:15:07 +07:00
										 |  |  |               </td> | 
					
						
							|  |  |  |               <td> | 
					
						
							|  |  |  |                 <div> | 
					
						
							|  |  |  |                   <ng-template [ngIf]="vin.is_coinbase" [ngIfElse]="regularVin"> | 
					
						
							| 
									
										
										
										
											2020-02-17 20:39:20 +07:00
										 |  |  |                     Coinbase (Newly Generated Coins) | 
					
						
							| 
									
										
										
										
											2020-02-16 22:15:07 +07:00
										 |  |  |                   </ng-template> | 
					
						
							|  |  |  |                   <ng-template #regularVin> | 
					
						
							| 
									
										
										
										
											2020-03-10 14:46:12 +07:00
										 |  |  |                     <a [routerLink]="['/address/', 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-03-10 14:46:12 +07:00
										 |  |  |                       <span class="d-none d-lg-block">{{ vin.prevout.scriptpubkey_address | shortenString : 42 }}</span> | 
					
						
							|  |  |  |                     </a> | 
					
						
							| 
									
										
										
										
											2020-02-16 22:15:07 +07:00
										 |  |  |                     <div> | 
					
						
							|  |  |  |                       <app-address-labels [vin]="vin"></app-address-labels> | 
					
						
							|  |  |  |                     </div> | 
					
						
							|  |  |  |                   </ng-template> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |               </td> | 
					
						
							|  |  |  |               <td class="text-right nowrap"> | 
					
						
							|  |  |  |                 <app-amount *ngIf="vin.prevout" [satoshis]="vin.prevout.value"></app-amount> | 
					
						
							|  |  |  |               </td> | 
					
						
							|  |  |  |             </tr> | 
					
						
							|  |  |  |           </tbody> | 
					
						
							|  |  |  |         </table> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       </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> | 
					
						
							|  |  |  |             <tr *ngFor="let vout of tx.vout; let vindex = index;"> | 
					
						
							|  |  |  |               <td> | 
					
						
							| 
									
										
										
										
											2020-03-10 14:46:12 +07:00
										 |  |  |                 <a *ngIf="vout.scriptpubkey_address; else scriptpubkey_type" [routerLink]="['/address/', vout.scriptpubkey_address]" title="{{ vout.scriptpubkey_address }}"> | 
					
						
							|  |  |  |                   <span class="d-block d-lg-none">{{ vout.scriptpubkey_address | shortenString : 16 }}</span> | 
					
						
							|  |  |  |                   <span class="d-none d-lg-block">{{ vout.scriptpubkey_address | shortenString : 42 }}</span> | 
					
						
							|  |  |  |                 </a> | 
					
						
							| 
									
										
										
										
											2020-02-16 22:15:07 +07:00
										 |  |  |                 <ng-template #scriptpubkey_type> | 
					
						
							|  |  |  |                   OP_RETURN | 
					
						
							|  |  |  |                 </ng-template> | 
					
						
							|  |  |  |               </td> | 
					
						
							|  |  |  |               <td class="text-right nowrap"> | 
					
						
							|  |  |  |                 <app-amount [satoshis]="vout.value"></app-amount> | 
					
						
							|  |  |  |               </td> | 
					
						
							|  |  |  |               <td class="pl-1 arrow-td"> | 
					
						
							|  |  |  |                 <i *ngIf="!outspends[i]; else outspend" class="arrow grey"></i> | 
					
						
							|  |  |  |                 <ng-template #outspend> | 
					
						
							| 
									
										
										
										
											2020-02-17 20:39:20 +07:00
										 |  |  |                   <i *ngIf="!outspends[i][vindex] || !outspends[i][vindex].spent; else spent" class="arrow red"></i> | 
					
						
							| 
									
										
										
										
											2020-02-16 22:15:07 +07:00
										 |  |  |                   <ng-template #spent> | 
					
						
							| 
									
										
										
										
											2020-02-17 20:39:20 +07:00
										 |  |  |                     <a [routerLink]="['/tx/', outspends[i][vindex].txid]"><i class="arrow green"></i></a> | 
					
						
							| 
									
										
										
										
											2020-02-16 22:15:07 +07:00
										 |  |  |                   </ng-template> | 
					
						
							|  |  |  |                 </ng-template> | 
					
						
							|  |  |  |               </td> | 
					
						
							|  |  |  |             </tr> | 
					
						
							|  |  |  |             <tr> | 
					
						
							| 
									
										
										
										
											2020-03-10 14:46:12 +07:00
										 |  |  |               <td class="text-right" colspan="4" style="vertical-align: bottom;"> | 
					
						
							| 
									
										
										
										
											2020-02-16 22:15:07 +07:00
										 |  |  |                 <span *ngIf="showConfirmations && latestBlock$ | async as latestBlock"> | 
					
						
							| 
									
										
										
										
											2020-02-26 21:11:43 +07:00
										 |  |  |                   <button *ngIf="tx.status.confirmed; else unconfirmedButton" type="button" class="btn btn-sm btn-success mt-3">{{ latestBlock.height - tx.status.block_height + 1 }} confirmation<ng-container *ngIf="latestBlock.height - tx.status.block_height + 1 > 1">s</ng-container></button> | 
					
						
							| 
									
										
										
										
											2020-02-16 22:15:07 +07:00
										 |  |  |                   <ng-template #unconfirmedButton> | 
					
						
							|  |  |  |                     <button type="button" class="btn btn-sm btn-danger mt-3">Unconfirmed</button> | 
					
						
							|  |  |  |                   </ng-template> | 
					
						
							|  |  |  |                     | 
					
						
							|  |  |  |                 </span> | 
					
						
							|  |  |  |                 <button type="button" class="btn btn-sm btn-primary mt-3" (click)="switchCurrency()"> | 
					
						
							|  |  |  |                   <app-amount [satoshis]="getTotalTxOutput(tx)"></app-amount> | 
					
						
							|  |  |  |                 </button> | 
					
						
							|  |  |  |               </td> | 
					
						
							|  |  |  |             </tr> | 
					
						
							|  |  |  |           </tbody> | 
					
						
							|  |  |  |         </table> | 
					
						
							|  |  |  |       </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  |   </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   <br> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | </ng-container> |