-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathcreate_invoice.html
34 lines (34 loc) · 1.02 KB
/
create_invoice.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<style type="text/css">
body {
font-family: Arial;
}
form {
}
input {
border: 2px solid #ccc;
padding: 12px 20px;
}
</style>
</head>
<body>
<div style="width:30em; margin:auto;">
<p>This is a sample web interface that lets you create on-chain
and lightning invoices to your Electrum wallet. You can use it
with an electrum daemon running on a webserver. The lightning
invoice will be replaced by an error message if your wallet is
disconnected or does not have enough inbound liquidity to
receive the requested amount. The on-chain invoice will not be
displayed if the amount is too small to be received onchain.
</p>
<form method=POST action=/api/create_invoice>
<input name="message" placeholder="description"><br/>
<input type="number" min="1" name="amount_sat" placeholder="amount (satoshis)" ><br/>
<input type="submit" value="Create invoice"><br/>
</form>
</div>
</body>
</html>