-
Notifications
You must be signed in to change notification settings - Fork 3
/
app.js
63 lines (48 loc) · 2.53 KB
/
app.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
// Source Article: https://medium.com/bitcraft/so-you-want-to-build-an-ethereum-hd-wallet-cb2b7d7e4998
// testnet Account = 2fcc8c72e3b26f2eea74a43520972c3f3cbff185
// infura = 5GZBABYhPzfctlTOIiXu
const bip39 = require("bip39");
const hdkey = require("hdkey");
const ethUtil = require('ethereumjs-util');
const ethTx = require('ethereumjs-tx');
const Web3 = require("web3");
const W3Main = require("./w3_main.js");
const W3Ether = require("./w3_ether.js");
const W3Bitcoin = require("./w3_bitcoin.js");
const W3Litecoin = require("./w3_litecoin.js");
const W3BitcoinCash = require("./w3_bitcoin_cash.js");
// W3Main.exportWallets();
// W3Main.importWallets();
// W3Ether.init();
// // W3Ether.initWallet();
// W3Ether.getBalance('0x99A5255df833AB35Cf5d9EA52e3aEDc697B49bba').then(function(data){
// console.log('Sender balance:', W3Ether.toEther(data));
// });
// Description EOS Token Sale Claim Key
// Public key EOS75Z5XCdmqzrwmkjdvqhrjzmcMaFTpDDmPFhT7paeRz3Ef5mUMV
// Private key 5JYqW1seMo18d3AGBmXCLmMej7Wsd89DVr3yHTSEiyjo4ZiQGcm
// W3Ether.initTx('0x99A5255df833AB35Cf5d9EA52e3aEDc697B49bba', '0xdc95f34b6E36C7fefd6BCe81613c0118d188A1F8', '2');
// W3Ether.getBalance('0xdc95f34b6E36C7fefd6BCe81613c0118d188A1F8').then(function(data){
// console.log('Reciever balance:', W3Ether.toEther(data));
// // W3Ether.initTx('0x99A5255df833AB35Cf5d9EA52e3aEDc697B49bba', '0xdc95f34b6E36C7fefd6BCe81613c0118d188A1F8', '1000000000000000000');
// // W3Ether.initTx('0xdc95f34b6E36C7fefd6BCe81613c0118d188A1F8', '0x99A5255df833AB35Cf5d9EA52e3aEDc697B49bba', '1000000000000000000');
// });
// W3Bitcoin.init();
// W3Bitcoin.initWallet();
// W3Bitcoin.initTx(W3Bitcoin.toSatoshi(0.001), 'mj4ipbTNFZ6ktpvwKNkjRbPTxjpikWE9wd');
// W3Bitcoin.getBalance('muv8JgWmTtCfQNswQn6xN7PvugyHQMvN7v');
// W3Bitcoin.getBalance('mu4tHpgKbp65FpFnxrWRQCKxyQHibntZYX');
// W3Litecoin.init();
// W3Litecoin.initWallet();
// W3Litecoin.getBalance('mgQrVPCgSng7Pf6ne1qpWEHTJHkPKFxUhk');
// W3Litecoin.initTx(W3Litecoin.toSatoshi(1), 'mgceoKf3FT6xkopjKoNv33ipG9k11MwuFN');
// W3Bitcoin.init();
// W3Bitcoin.initWallet();
// W3Bitcoin.initTx(W3Bitcoin.toSatoshi(0.01), '2N8JJbbNSZLyfiRW5TeL8hATy9r2Ras6TUt');
// W3Bitcoin.getBalance('mpTeFyADfMv5JCsAj7hYCtz9QzuvL7ZVrn');
// W3Litecoin.init();
// W3Litecoin.initWallet();
// W3Litecoin.initTx(W3Litecoin.toSatoshi(1), 'mkga1we9vQPJ8oXJQiuYNB3TbcLLagJAV4');
// W3BitcoinCash.initWallet();
// W3BitcoinCash.initTx('bchtest:qzm9g96xvelph3htdyvlwcqxtznhpfadxsxdqh57rz', 0.1)
W3BitcoinCash.getBalance('bchtest:qr3l7nzxxthrvzucgm2l66ld9xt42a8apullqlwjhy');