-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathindex.html
More file actions
50 lines (46 loc) · 2.31 KB
/
index.html
File metadata and controls
50 lines (46 loc) · 2.31 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Graph the balance of an Ethereum address over time.">
<meta name="author" content="Shawn Tabrizi">
<title>ETH Balance Graph</title>
<!-- Bootstrap 5 CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="p-4 mb-4 bg-body-tertiary rounded-3 mt-3">
<h1>ETH Balance Graph</h1>
<p class="lead">Graph the historical ETH Balance of an Ethereum address.</p>
<div class="input-group">
<input type="text" class="form-control" id="address" value="0x2fa0ac498d01632f959d3c18e38f4390b005e200" />
<a class="btn btn-primary" onclick="graphBalance();" role="button">Graph Balance »</a>
</div>
<div class="row mt-2">
<div class="col">
<div class="input-group">
<span class="input-group-text">Start Block:</span>
<input type="text" class="form-control" id="startBlock" placeholder="(optional)" />
</div>
</div>
<div class="col">
<div class="input-group">
<span class="input-group-text">End Block:</span>
<input type="text" class="form-control" id="endBlock" placeholder="(optional)" />
</div>
</div>
</div>
<div id="output"></div>
</div>
<div id="graph" style="width:100%;height:600px;"></div>
</div>
<div class="fixed-bottom bg-light">
<p class="text-center text-muted">Created by <a href="https://shawntabrizi.com">Shawn Tabrizi</a> - Source on <a href="https://github.com/shawntabrizi/ethgraph">GitHub</a> - Using <a href="https://plot.ly/javascript/">Plotly.js</a> and <a href="https://docs.ethers.org/">ethers.js</a></p>
</div>
<script src="https://cdn.plot.ly/plotly-2.35.2.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ethers/6.13.4/ethers.umd.min.js"></script>
<script src="./ethbalancegraph.js"></script>
</body>
</html>