-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
54 lines (54 loc) · 1.44 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
<!DOCTYPE html>
<html>
<head>
<style>
#val {
width: 40px;
}
#toAddress {
width: 400px;
}
#msg {
width: 400px;
}
</style>
</head>
<body>
<h1>*** Welcome to Mini-Bitcoin (MBTC)! ***</h1>
<b>== Your Wallet ==</b>
<br/>
<i>Balance: </i>#balance<br/>
<i>Address: </i>#address<br/>
<i>PublicKey: </i>#publickey<br/>
<br/>
/send qtd addressOrPublicKey message(optional)<br/>
ex: /send 1 12345<br/>
ex: /send 2 45678 store XYZ order 9001<br/>
ex: /send 5 MFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEdMkLaDHJ0H2EOBFbG2wH3IoHRrt0AsDtHZFqWAKIady256bANHhNy2An3RR1yY4aMAXY9cAn8j05OmQpDy8DRA==<br/>
<br/>
/send <input type="text" id="val" name="val"> <input type="text" id="toAddress" name="toAddress"> <input type="text" id="msg" name="msg"> <button onclick="send()">send</button>
<br/>
<br/>
<b>== Blockchain data ==</b>
<br/>
<a href="/blocks">/blocks</a><br/>
<a href="/chain">/chain</a><br/>
ex: /block 000000000001_1.block<br/>
/block <input type="text" id="block" name="block"> <button onclick="block()">see block</button><br/>
<br/>
<b>== Admin ==</b>
<br/>
<a href="/utxo">/utxo</a><br/>
<a href="/mempool">/mempool</a><br/>
<a href="/net">/net</a><br/>
<br/>
<script>
function send() {
window.location.href = "/send " + document.getElementById("val").value + " " + document.getElementById("toAddress").value + " " + document.getElementById("msg").value;
}
function block() {
window.location.href = "/block " + document.getElementById("block").value;
}
</script>
</body>
</html>