1.0.2 • Published 6 years ago

frikadeller v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

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:

    1. The block number,
    1. The total number of transactions,
    1. The total number of unique 'from' addresses,
    1. The total number of unique 'to' addresses,
    1. The total number of contracts created,
    1. The total number of contract transactions,
    1. The total number of uncles.

Before the summary table for each block, the program lists:

    1. Every unique 'from' address and its total spent that block,
    1. Every unique 'to' address and its total received that block,
    1. Every unique contract address.

Finally, a summary table for all blocks explored is displayed, listing:

    1. The total number of ETH transacted,
    1. The total number of transactions,
    1. The total number of unique 'to' addresses,
    1. The total number of unique 'from' addresses,
    1. The total number of contracts created,
    1. The total number of contract transactions,
    1. The total number of uncles.

Before the summary table for each block, the program lists:

    1. Every unique 'from' address and its total spent in sum,
    1. Every unique 'to' address and its total received in sum,
    1. 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