forked from phpcoinn/node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmempool.php
More file actions
executable file
·58 lines (52 loc) · 1.53 KB
/
mempool.php
File metadata and controls
executable file
·58 lines (52 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
require_once dirname(__DIR__)."/apps.inc.php";
define("PAGE", true);
define("APP_NAME", "Explorer");
$transactions = Transaction::mempool(100, false, false);
?>
<?php
require_once __DIR__. '/../common/include/top.php';
?>
<ol class="breadcrumb m-0 ps-0 h4">
<li class="breadcrumb-item"><a href="/apps/explorer">Explorer</a></li>
<li class="breadcrumb-item active">Mempool</li>
</ol>
<div class="table-responsive">
<table class="table table-sm table-striped">
<thead class="table-light">
<tr>
<th>Id</th>
<th>Date</th>
<th>Height</th>
<th>Src</th>
<th>Dst</th>
<th>Value</th>
<th>Fee</th>
<th>Type</th>
<th>Message</th>
</tr>
</thead>
<tbody>
<?php foreach ($transactions as $transaction) { ?>
<tr>
<td>
<a href="/apps/explorer/tx.php?id=<?php echo $transaction['id'] ?>">
<?php echo truncate_hash($transaction['id']) ?>
</a>
</td>
<td><?php echo date("Y-m-d H:i:s",$transaction['date']) ?></td>
<td><?php echo $transaction['height'] ?></td>
<td><?php echo explorer_address_link2($transaction['src'], true) ?></td>
<td><?php echo explorer_address_link2($transaction['dst'], true) ?></td>
<td><?php echo $transaction['val'] ?></td>
<td><?php echo $transaction['fee'] ?></td>
<td><?php echo Transaction::typeLabel($transaction['type']) ?></td>
<td style="word-break: break-all"><?php echo safeDisplay($transaction['message']) ?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<?php
require_once __DIR__ . '/../common/include/bottom.php';
?>