-
Notifications
You must be signed in to change notification settings - Fork 9
/
txPoolReport.php
executable file
·189 lines (153 loc) · 7.48 KB
/
txPoolReport.php
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<?php require_once 'build/php/common.php'; ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Meta, title, CSS, favicons, etc. -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo EGS_TITLE; ?> | Consumer oriented metrics for the Ethereum gas market </title>
<meta name="keywords" content="Ethereum ETH gas blockchain market price transactions miners users">
<meta name="description" content="<?php echo EGS_DESCRIPTION; ?>">
<meta property="og:title" content="<?php echo EGS_TITLE; ?>" />
<meta property="og:type" content="website" />
<meta property="og:image" content="images/ETHGasStation.png" />
<meta property="og:url" content="https://<?php echo EGS_HOSTNAME; ?>" />
<!-- Bootstrap -->
<link href="vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Font Awesome -->
<link href="vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<!--Favicon-->
<link rel="apple-touch-icon" sizes="57x57" href="images/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="images/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="images/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="images/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="images/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="images/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="images/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="images/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="images/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="images/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="images/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="images/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<!-- Custom Theme Style -->
<link href="build/css/custom.css" rel="stylesheet">
<?php include 'build/php/minerT_py.php'; ?>
</head>
<body class="nav-md">
<?php include 'unofficial.php'; ?>
<div class="container body">
<div class="main_container">
<?php include 'sidebar.php'; ?>
<!-- top navigation -->
<div class="top_nav">
<div class="nav_menu">
<nav>
<div class="nav toggle">
<a id="menu_toggle"><i class="fa fa-bars"></i></a>
</div>
<ul class="nav navbar-nav navbar-right">
</ul>
</nav>
</div>
</div>
<!-- /top navigation -->
<!-- page content -->
<div class="right_col" role="main">
<div class="row">
<div class="col-md-8 col-sm-12 col-xs-12">
<div class="x_panel tile fixed_height_420">
<div class="x_title">
<h4>Txpool Data At Block <span style = 'color:#1ABB9C'><?php echo $gpRecs2['blockNum']?></h4>
<div class="clearfix"></div>
</div>
<div class="x_content">
<table class="table table-striped">
<thead>
<tr>
<th>Gas Price (Gwei)</th>
<th>% of Last 200 Blocks Accepting </th>
<th>% of total transactions mined in last 200 blocks </th>
<th>#Tx at/above in txpool</th>
<th>Median Age (blocks)</th>
<th>Total Seen 5m</th>
<th>Pct Mined 5m</th>
<th>% of Tx Unmined > 5min</th>
<th>Total Seen 30m</th>
<th>Pct Mined 30m</th>
<th>% of Tx Unmined > 20min</th>
</tr>
</thead>
<tbody>
<?php
foreach ($predictArray as $row){
if ($row['gasprice']>=0){
echo('<tr>');
$uciWait = $row['expectedTime'] * 2.5;
echo("<td>". $row['gasprice']. "</td>");
echo("<td>". round($row['hashpower_accepting'], 1) ."</td>");
echo("<td>". round($row['hashpower_accepting2'], 1) ."</td>");
echo("<td>". $row['tx_atabove']."</td>");
echo("<td>". $row['age']."</td>");
if (isset($row['total_seen_5m'])){
echo("<td>". $row['total_seen_5m']. "</td>");}
else{
echo("<td>". '---'."</td>");}
}
if (isset($row['pct_mined_5m'])){
echo("<td>". $row['pct_mined_5m']. "</td>");}
else{
echo("<td>". '---'."</td>");}
if (isset($row['pct_remaining5m'])){
echo("<td>". $row['pct_remaining5m']. "</td>");}
else{
echo("<td>". '---'."</td>");}
if (isset($row['total_seen_30m'])){
echo("<td>". $row['total_seen_30m']. "</td>");}
else{
echo("<td>". '---'."</td>");}
if (isset($row['pct_mined_30m'])){
echo("<td>". $row['pct_mined_30m']. "</td>");}
else{
echo("<td>". '---'."</td>");}
if (isset($row['pct_remaining30m'])){
echo("<td>". $row['pct_remaining30m']. "</td>");}
else{
echo("<td>". '---'."</td>");}
echo('</tr>');}
?>
</tbody>
</table>
</div>
</div>
</div>
<!-- /misc transactions -->
</div>
</div>
<!-- /page content -->
<!-- footer content -->
<footer>
<div class="pull-right">
Gentelella - Bootstrap Admin Template by <a href="https://colorlib.com">Colorlib</a>
</div>
<div class="clearfix"></div>
</footer>
<!-- /footer content -->
</div>
</div>
<!-- jQuery -->
<script src="vendors/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="vendors/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- Chart.js -->
<script src="vendors/Chart.js/dist/Chart.min.js"></script>
<!-- Custom Theme Scripts -->
<script src="build/js/custom3.js"></script>
</body>
</html>