forked from jeasonstudio/runestone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrunestone.html
35 lines (34 loc) · 938 Bytes
/
runestone.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>runestone</title>
</head>
<body>
<script type="module">
import { Runestone } from 'https://esm.sh/@ordjs/runestone@latest/bundle';
const tx = {
output: [
{
script_pubkey:
'6a5d1f02010480bbb180c5ddf4ede90303a40805b5e9070680809dd085bedd031601',
value: 0,
},
{
script_pubkey:
'5120f74ffbe050dae50a5564d8c9ff57e5bc2fc931225402e4fa751bb21c7da53560',
value: 546,
},
{
script_pubkey: '0014e08b4212e2a63e1cce78e1ccfbe326a0b8380968',
value: 2158,
},
],
input: [],
};
const runestone = Runestone.decipher(tx);
console.log(runestone);
</script>
</body>
</html>