-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathbadger-token.html
More file actions
34 lines (30 loc) · 854 Bytes
/
badger-token.html
File metadata and controls
34 lines (30 loc) · 854 Bytes
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>
<script type="text/javascript" src="https://developer.bitcoin.com/badger/badgerToken-1.0.1.js"></script>
</head>
<body>
<p>Tip with Badger Button</p>
<p>
<button
class="badger-button"
data-to="simpleledger:qpyg4qntl3kg5ucsf6eqsrt8hr34h2wn9qsvu3wuwa"
data-success-callback="badgerCallback"
data-token-amount="1"
data-token-id="df808a41672a0a0ae6475b44f272a107bc9961b90f29dc918d71301f24fe92fb"
data-token-protocol="slp"
>
Tip 1 $NAKAMOTO
</button>
</p>
<p id="confirmed">
</p>
<script>
var badgerCallback = function(txid) {
console.log("Success. Transaction ID:", txid)
var confirmedElement = document.getElementById("confirmed")
confirmedElement.innerText = "Confirmed. Transaction ID: " + txid
}
</script>
</body>
</html>