We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2173f8 commit d4d815dCopy full SHA for d4d815d
transactionChecker.js
@@ -4,7 +4,7 @@ module.exports = web3 => {
4
const account = 'YOUR_ETH_ADDRESS'.toLowerCase();
5
6
return {
7
- checkLastBlock: async () => {
+ async checkLastBlock() => {
8
let block = await web3.eth.getBlock('latest');
9
console.log(`[*] Searching block ${ block.number }...`);
10
if (block && block.transactions) {
@@ -18,7 +18,7 @@ module.exports = web3 => {
18
}
19
},
20
21
- checkBlocks: async (start, end) => {
+ async checkBlocks(start, end) => {
22
for (let i = start; i < end; i++) {
23
let block = await web3.eth.getBlock(i)
24
console.log(`[*] Searching block ${ i }`);
0 commit comments