Eth-balance-extractor scans Ethereum blockchain to extract token holders with their balances and public keys.
Required software: Node >10.0.0
There is the 'Parameters' section in the index.js that contains configuration of the scanner.
For the first run install npm packages using npm i
command from the events-scanner
folder.
To start scanning process use following command from the events-scanner
folder:
npm run run
Result of scanning process will be 3 files:
- negative_balance_wallets.csv
- positive_balance_wallets.csv
- zero_wallets.csv
These files have following structure:
- Wallet address
- Hash of any transaction, performed by wallet (that can be used for restoring wallet public key)
- Balance
- Transactions count
To start extraction process run following command:
eth-public-keys-extractor extractWalletsKeys http://url_of_eth_node_api ./path_to_wallets.csv # path to the file that contains wallets obtained by events-scanner utility
./path_to_dest_folder # path to folder where result file wallets.csv will be saved
start_block # first block of the pub keys extraction process
- blockHash - hash of the block that transaction belongs to.
- blockNumber - number of the block that transaction belongs to.
- from - address of the sender wallet
- gas - amount of gas that is used by transaction
- gasPrice - amount of Ether for every unit of gas
- hash - hash of the transaction
- input - payload of transaction (may contain parameters of smart contract function in case if transaction preforms a call to smart contract)
- nonce - value found by miner
- to - receiver of the transaction
- transactionIndex - transaction position in the block
- value - Ether amount that was sent in the transaction
- v, r, s - values of transaction signature (must be used for public key recovery)