-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
48 lines (44 loc) · 1.98 KB
/
index.html
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GasTrology.ETH</title>
<meta name="description" content="DethGasStation">
</head>
<body style="font-family: monospace">
<h1>GasTrology.ETH</h1>
GasTrology.ETH helps you estimate gas prices for Ethereum transaction by analyzing past blocks. It does not rely on any central service providers by using your web3 endpoint (e.g. via Metamask). Note that this analysis will be about 10x faster on your own Ethereum node instead of relying on centralized service providers like Infura, so consider running your own node.
<h2>Settings</h2>
<label for="startBlock">First block to analyze:</label>
<input type="number" id="startBlock"><br />
<label for="numBlocks">Number of blocks to anlyse (empty = keep loading):</label>
<input type="number" id="numBlocks" value="3"><br />
<label for="web3Endpoint">Web3 endpoint (Metamask = window.ethereum):</label>
<input type="text" id="web3Endpoint" value="window.ethereum"><br />
<button id="resetData" onclick="resetAll()">Reset data</button>
<button id="toggleButton" onclick="toggle()">Load</button>
<h2>Gas prices per block in GWei</h2>
<table id="gasTable" style="text-align:right">
<thead>
<tr>
<th width=100>block</th>
<th width=70>#txs</th>
<th width=70>min</th>
<th width=70>10th lowest</th>
<th width=70>median</th>
<th width=70>average</th>
<th width=70>10th highest</th>
<th width=70>max</th>
<th width=200 id="spectrumHeader">gas spectrum</th>
</tr>
</thead>
<tbody id="tbody">
</tbody>
</table>
<div id="outputDiv"></div>
GasTrology.ETH is FOSS built by <a target="_blank" href="https://twitter.com/SCBuergel">Sebastian Bürgel</a> at <a target="_blank" href="https://github.com/SCBuergel/gastrology">github.com/SCBuergel/gastrology</a>
<script src="js/web3.min.js"></script>
<script src="js/scripts.js"></script>
<script src="https://cdn.usefathom.com/script.js" data-site="JVWFWZHI" defer></script>
</body>
</html>