-
Notifications
You must be signed in to change notification settings - Fork 14
/
get_busd.js
33 lines (22 loc) · 964 Bytes
/
get_busd.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
const Web3 = require("web3")
const web3 = new Web3(new Web3.providers.HttpProvider("https://data-seed-prebsc-1-s3.binance.org:8545 "))
var Tx = require('ethereumjs-tx').Transaction;
var fs = require('fs');
var accounts = fs.readFileSync('pub.txt').toString().split("\n");
var privates = fs.readFileSync('priv.txt').toString().split("\n");
accounts.forEach(function(item,i,accounts)
{
web3.eth.accounts.wallet.add(privates[accounts.indexOf(item)]);
web3.eth
.sendTransaction({
from: item,
to: "0x265b25e22bcd7f10a5bd6e6410f10537cc7567e8",
value: web3.utils.toWei("0", "ether"),
gas: 90000,
data:'0x428dc45100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000eb3eb991d39dac92616da64b7c6d5af5ccff1627'
})
.then(function (receipt) {
console.log(receipt)
}).catch((err) => {
console.log("Failed with error: " + err);});
})