-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.js
105 lines (100 loc) · 3.93 KB
/
test.js
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
const yolo = require('./index.js')
const add1 = [ '2MyEcnJgsHMdiHQrpaaknGDnqFohJo9dsMa',
'2NBSh5iYxD3GjDsHURW5Yo5fyjwwgakPzNW',
'2MtaE1ujrjsp7UxdCqjagMNA6HeVvM59kQh',
'2NDvecZK61C7UxBxZZeRDMzQbB8hboG528L',
'2N5mqcMVrwPxJuFb9gDejuBLEGjE7tYckA7',
'2Mu2vbVnXPgWeNcRdWFWk1CWt3zXdFX4XdJ',
'2N1dXA3ZyXZn8dxT2mEbcj4xid77Eu2Csbm',
'2Mu1DvGh7LxJCvfSExrJxTDCPHRwANZBLwi',
'2ND7aQkHTVaQpwbqjbXRrKbHa4pVuwga72f',
'2NEEgvSDu5EZ5LZQ1idKpcZRztEH4UWC5f3',
'2MxzoFLuQkYfkKXUCE6pz2uwVDfSVCxT8Lv',
'2MxDKmtoorSt8NZpqiofHjTQYjyfqdH6CwA',
'2MxnarmdvYQ8FEqCqevirsknXX3mSzEgA8P',
'2N2WSiBJMCrpZhwYkD6GGukMnhfCNjQysHt',
'2NDapFhpa1xNRXyz6CqRiWeK3YN3A95sw7E',
'2MztSxfTzs1dPiY6QbFyNbuzrmEM6K98Dct',
'2MyqdjWSijzGpcYhQoQnZ4hg7ak3575kzZa',
'2N1k6tN4iJ1wjjZpzGQMfAHN9uygLPe3MUg',
'2N91aZizuWXn4Qi5XMgvU1RCMEmSXPEerNR',
'2N4a8tBbdLeTQkBcxt9pYuMd1DLA7L87Aby',
'2N73h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qKx',
'2N2r362ZXvRn4AMQFeXxuVRP1NMfDkK5Bk9',
'2Mvpb3VC3HrrBc8mS2fh4nnV2woRhPe4K7U',
'2MwbHrj6xiZJW3V6uwNzPsj8uyA6gt5EzLB',
'2N8UYMnDTkCga2qkN1yR14cZJ9kE43mX5kV' ]
const testnetMode = true
yolo.getTransactions(add1, testnetMode).then(txs => {
console.log(`first one finished`)
console.log(txs);
return yolo.getTransactions(addresses, testnetMode)
}).then(t => {
console.log(`finished`)
console.log(t);
}).catch(err => {
console.log(err);
console.log(`onetuhnatuhoetnh`)
})
// yolo.getTransactions(add1).then(txs => {
// console.log(`first one finished`)
// console.log(txs);
// }).catch(err => {
// console.log(err);
// console.log(`onetuhnatuhoetnh`)
// })