-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxrpwallet.html
More file actions
128 lines (125 loc) · 4.4 KB
/
xrpwallet.html
File metadata and controls
128 lines (125 loc) · 4.4 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
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
<html>
<head>
<title>XRP WALLET</title>
<link href='https://fonts.googleapis.com/css?family=Work Sans' rel='stylesheet'>
<style>
body{font-family: "Work Sans", sans-serif;padding: 20px;background: #ce91e2;}
h1{font-weight: bold;}
input, button {padding: 6px;margin-bottom: 8px;}
button{font-weight: bold;font-family: "Work Sans", sans-serif;}
td{vertical-align: middle;}
</style>
<script src='xrpl-latest-min.js'></script>
<script src='xrpl-latest.js'></script>
<script src='xrpwallet.js'></script>
<script>
if (typeof module !== "undefined") {
const xrpl = require('xrpl')
}
</script>
</head>
<!-- ************************************************************** -->
<!-- ********************** The Form ****************************** -->
<!-- ************************************************************** -->
<body>
<h1>XRP WALLET</h1>
<form id="theForm">
Choose Net:
<input type="radio" id="tn" name="server"
value="wss://s.altnet.rippletest.net:51233">
<label for="testnet">Testnet</label>
<input type="radio" id="dn" name="server"
value="wss://s.devnet.rippletest.net:51233">
<label for="devnet">Devnet</label>
<input type="radio" id="mn" name="server"
value="wss://xrplcluster.com">
<label for="mainnet">Mainnet</label>
<br/><br/>
Choose Algo:
<input type="radio" id="secp" name="algorit" value="secp256k1">
<label for="secpp">Secp256k1 (29 characters seeds)</label>
<input type="radio" id="ed" name="algorit" value="ed25519">
<label for="dedd">Ed25519 (31 characters seeds)</label>
<br/><br/>
<button type="button" onClick="getAccountsFromSeeds()">Get Account from Seed:
</button>
<br/>
<textarea id="seeds" cols="40" rows= "1"></textarea>
<br/><br/>
<button type="button" onClick="getAccount()">(or create a Testnet/Devnet account)</button>
<button type="button" onClick="getAccount2()">(or create a Mainnet account)</button>
<table>
<tr valign="top">
<td>
<table>
<tr valign="top">
<td>
<table>
<tr valign="top">
<td align="right">
Account
</td>
<td>
<input type="text" id="standbyAccountField" size="40"></input>
<br>
</td>
</tr>
<tr>
<td align="right">
Seed
</td>
<td>
<input type="text" id="standbySeedField" size="40"></input>
<br>
</td>
</tr>
<tr>
<td align="right">
XRP Balance
</td>
<td>
<input type="text" id="standbyBalanceField" size="40"></input>
<br>
</td>
</tr>
<tr>
<td align="right">
Amount
</td>
<td>
<input type="text" id="standbyAmountField" size="40"></input>
<br>
</td>
</tr>
<tr>
<td align="right">
Destination
</td>
<td>
<input type="text" id="standbyDestinationField" size="40"></input>
<br>
</td>
</tr>
</table>
<button type="button" onClick="reload()">Clear fields</button>
<br/>
<button type="button" onClick="sendXRP()">Send XRP</button>
<p align="right">
<textarea id="standbyResultField" cols="80" rows="20" ></textarea>
</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>