forked from cashubtc/cashu-redeem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
50 lines (44 loc) · 3.08 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Cashu Redeem</title>
<meta name="description" content="Redeem Cashu ecash tokens to your lightning wallet!">
<meta property="og:title" content="Cashu Redeem">
<meta property="og:type" content="website" />
<meta property="og:description"
content="Redeem Cashu ecash tokens to your lightning wallet - Cashu is a free and open-source Chaumian ecash system built for Bitcoin. Cashu offers near-perfect privacy for users of custodial Bitcoin applications. Nobody needs to know who you are, how much funds you have, and with whom you transact with.">
<meta property="og:image" content="public/cashu_banner.png">
<meta property="og:url" content="https://www.nostrly.com/cashu-redeem/">
<meta name="twitter:card" content="summary_large_image">
<link rel='stylesheet' href='src/style.css' media='all'/>
<script src="/public/nostrly-cashu.min.js"></script>
</head>
<body>
<noscript>JavaScript is required to run this application</noscript>
<div id="cashu-redeem">
<img src="public/rounded_192x192.png" class="logo" alt="Cashu logo" width="192" height="192">
<h1>Cashu Redeem</h1>
<p class="preamble">Cashu is a free and open-source Chaumian ecash system built for Bitcoin. Cashu offers near-perfect privacy, just like spending and receiving cash. You can receive ecash by using Nostrly or npub.cash as your Lightning address.</p>
<p class="preamble">This tool lets you redeem a Cashu ecash token and get paid to your lightning address... just like paying cash into a bank account. You can also use this tool to pay a lightning invoice using ecash, with change returned as a new ecash token.</p>
<p class="preamble">Simply enter your Cashu ecash token below... you will then be able to enter a lightning address to redeem the funds to, or a lightning invoice or LNURL to pay. Once payment is made, any change due will be presented as a new ecash token.</p>
<div id="tokenWrapper" class="text-wrapper">
<textarea id="token" rows="10" cols="50" placeholder="Paste in your Cashu ecash token..."></textarea>
<button id="tokenRemover" class="text-remover hidden">×</button>
</div>
<p id="tokenStatus" class="text-wrapper"></p>
<p id="lightningStatus" class="text-wrapper"></p>
<div id="lightningSection" class="hidden">
<div id="lnurlWrapper" class="text-wrapper">
<input type="text" placeholder="Paste Lightning address, Lightning invoice or LNURL" value="" id="lnurl">
<button id="lnurlRemover" class="text-remover hidden">×</button>
</div>
<button id="redeem" class="button-primary">Redeem Token</button>
</div>
<p class="disclaimer">This is a stand-alone open-source demo version of the <a href="https://www.nostrly.com/cashu-redeem/">Nostrly Cashu Redeem Tool</a>.</p>
<p class="disclaimer"><strong>Disclaimer:</strong> <em>This is a Work-In-Progress. Don’t be reckless.</em></p>
</div>
</body>
</html>