-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
135 lines (117 loc) · 2.83 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Token Balances</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>Token Balances</h1>
<form id="balances-form">
<label for="greater-than-balance">Minimum Balance for each NFT:</label>
<input type="text" id="greater-than-balance" name="greater-than-balance" value="1"><br><br><br>
<label for="tokenIds">Token IDs (one per line):</label>
<textarea id="tokenIds" name="tokenIds" rows="5">0.0.5083205</textarea><br><br><br>
<button type="submit">Submit</button>
</form>
<!-- <h2>Total Lifetime Transactions and Fees</h2>
<table id="total-transactions" style="width: 35%;">
<thead>
<tr>
<th>Transaction Type</th>
<th>Transaction Total</th>
<th>Fee Total (HBAR)</th>
<th>Fee Total (USD)</th>
</tr>
</thead>
<tbody>
<tr>
<td>Token Transfers</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Token Mint</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Token Creation</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Token Association</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td><b>TOTALS</b></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table> -->
</table>
</div>
<h2>Number of Accounts Holding Each NFT</h2>
<table id="counts-table">
<thead>
<tr>
<th>Token ID</th>
<th>Number of Accounts</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<h2>Account balances for each NFT</h2>
<table id="balances-table">
<thead>
<tr>
<th>Token ID</th>
<th>Account </th>
<th>Balance</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div id="token-counts">
<table id="token-counts-table">
<thead>
<tr>
<th>Token ID</th>
<th>Total Balance</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<h2>Accounts which own all NFTs (if >1 NFT_ID is used)</h2>
<table id="holders-table">
<thead>
<tr>
<th>Account</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/axios.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/axios.min.js"></script>
<script src="script.js"></script>
</body>
</html>
<!-- TODO
**SHOULD THIS PROJECT BE BROKEN DOWN INTO SMALLER PROJECTS?**
1. Fetch and sum total transaction fee for each NFT association, mint and transaction
3. Sum total transaction fees for entire collection + nfts
5. Calculate the number of transactions per NFT
-->