Skip to content

Commit

Permalink
web3: add package.json & balance.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dm4 committed Jul 13, 2021
1 parent 8b5b79a commit 3634083
Show file tree
Hide file tree
Showing 3 changed files with 8,311 additions and 0 deletions.
20 changes: 20 additions & 0 deletions web3/balance.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
const utils = require('./utils');

(async () => {
const web3 = utils.web3();
let accounts = [
'0x6be02d1d3665660d22ff9624b7be0551ee1ac91b',
'0x1cCA28600d7491365520B31b466f88647B9839eC',
];

while (true) {
console.log('block: ', await web3.eth.getBlockNumber());
for (account of accounts) {
console.log(' accounts: ', account);
console.log(' balance: ', await web3.eth.getBalance(account));
}
await new Promise(r => setTimeout(r, 6000));
}

await utils.provider.engine.stop();
})();
Loading

0 comments on commit 3634083

Please sign in to comment.