-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample.html
More file actions
52 lines (35 loc) · 1.04 KB
/
sample.html
File metadata and controls
52 lines (35 loc) · 1.04 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
<!DOCTYPE html>
<html>
<head>
<title>SymbolFetcher Test</title>
<script src="bundle.min.js"></script>
</head>
<body>
<h1>SymbolFetcher</h1>
<p>Check the console for results.</p>
<script>
const fetcher = new SymbolTransactionFetcher(
[
"https://201-sai-dual.symboltest.net:3001",
"https://testnet1.symbol-mikun.net:3001",
"https://testnet2.symbol-mikun.net:3001",
"https://sym-test-03.opening-line.jp:3001"
]
);
fetcher.getAllTransactions("TD4XTA562FNJ7ZZIXCEWGAMRWIJFQWDPOCAWZDI")
.then(transactions => {
console.log("Transactions:", transactions);
})
.catch(error => {
console.error("Error fetching transactions:", error);
});
fetcher.getAllTransactionsAggregate("TD4XTA562FNJ7ZZIXCEWGAMRWIJFQWDPOCAWZDI")
.then(transactions => {
console.log("Transactions:", transactions);
})
.catch(error => {
console.error("Error fetching transactions:", error);
});
</script>
</body>
</html>