1.0.2 • Published 6 years ago
frikadeller v1.0.2
Web3BlockScanner
This CLI program is an Ethereum block explorer using Web3.js and an Infura Web Socket, built in NodeJS.
You may supply the program either
- 1) a single number, which will be used to analyze all blocks between the current block (cb) and cb minus that number; or,
- 2) two numbers, each representing a blocknumber, which will be used to analyze those blocks inclusive, as well as those in between.
Each Block explored display a summary table, listing:
- The block number,
- The total number of transactions,
- The total number of unique 'from' addresses,
- The total number of unique 'to' addresses,
- The total number of contracts created,
- The total number of contract transactions,
- The total number of uncles.
Before the summary table for each block, the program lists:
- Every unique 'from' address and its total spent that block,
- Every unique 'to' address and its total received that block,
- Every unique contract address.
Finally, a summary table for all blocks explored is displayed, listing:
- The total number of ETH transacted,
- The total number of transactions,
- The total number of unique 'to' addresses,
- The total number of unique 'from' addresses,
- The total number of contracts created,
- The total number of contract transactions,
- The total number of uncles.
Before the summary table for each block, the program lists:
- Every unique 'from' address and its total spent in sum,
- Every unique 'to' address and its total received in sum,
- Every unique contract address.
To use this tool, you can
Clone the repo
To get started with a clone,
Clone the repo from here: https://github.com/kielbarry/Web3BlockScanner.git
- CD into that directory
- Run npm install --save
- Run npm test
- If there is a delay after test success, exit the program and run node app.js from the root of the directory