forked from ethgasstation/ethgasstation-frontend
-
Notifications
You must be signed in to change notification settings - Fork 2
/
validatedTable.php
executable file
·179 lines (141 loc) · 7.03 KB
/
validatedTable.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
<?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">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-134672026-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-134672026-1');
</script>
<!-- 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">
<!-- Sidebar -->
<?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">
<p class="navbar-text navbar-left" style="padding-left: 5px"><strong><?php echo "Stats over last 10,000 blocks - Last update: Block <span style = 'color:#1ABB9C'> $latestBlock" ?></strong></span>
</p>
</ul>
</nav>
</div>
</div>
<!-- /top navigation -->
<!-- page content -->
<div class="right_col" role="main">
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel tile fixed_height_420">
<div class="x_title">
<h4>Most Recent Low Gas Price Transactions <small>(Updated every 50 blocks)</small></h4>
<div class="clearfix"></div>
</div>
<div class="x_content">
<table class="table table-striped">
<thead>
<tr>
<th>Gas Price (Gwei)</th>
<th>Transaction Hash</th>
<th>Posted Block</th>
<th>Mined</th>
<th>Mined Block</th>
</tr>
</thead>
<tbody>
<?php
foreach ($validatedArray as $row){
echo('<tr>');
echo("<td>". round(($row['gasprice']), 3). "</td>");
echo("<td>". $row['index']. "</td>");
echo("<td>". $row['block_posted']. "</td>");
if (!$row['mined']){
$row['mined']='False';
}
else{$row['mined']='True';}
echo("<td>". $row['mined']. "</td>");
if (isset($row['block_mined'])){
echo("<td>". $row['block_mined']. "</td>");}
else{echo("<td></td>");}
echo('</tr>');
}
?>
</tbody>
</table>
<p>Note: All transactions posted to the network with a gas price < 1 gwei are monitored for confirmation. If one does not confirm in 200 blocks, the 'Safe Low' gas price is updated to either 1) a gas price higher than the one that failed to confirm or 2) a lower priced transaction that was posted and confirmed after the transaction that did not confirm. If neither is available, it is updated to the average gas price until a new low gas price transaction is posted and mined.</p>
</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>
</script>
<script src="build/js/custom3.js"></script>
</body>
</html>