-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
32 lines (26 loc) · 1016 Bytes
/
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
<html>
<script src="index.js"></script>
<script charset="utf-8"
src="https://cdn.ethers.io/scripts/ethers-v4.min.js"
type="text/javascript">
</script>
<script>
initialize(web3)
</script>
<body>
<h1 id="myAddress">Address: </h1>
<h1 id="myEthBalance">My Eth Balance: </h1>
<input id="addressTo" placeholder="Send to..."></input><br>
<input id="toAmount" placeholder="Amount"></input><br>
<button onClick="sendEth()">Send</button><br>
<hr>
<input id="tokenToLoad" placeholder="Token Address..."</input><button id="tokenLoad" onClick="loadToken()">Load...</button><br>
<span id="name">Token: </span><br>
<span id="symbol">Symbol: </span><br>
<span id="totalSupply">Total Supply: </span><br>
<span id="contract">Contract: </span><br>
<span id="balance"l>Balance: </span><br>
<br>
<input id="transferTo" placeholder="transfer to..." ></input><input id="transferAmount" placeholder="amount"></input><button onclick="transfer()">Transfer</button><br>
</body>
</html>