Giter Site home page Giter Site logo

predator11236 / balancechecker-pro Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alexcs24/balancechecker-pro

0.0 0.0 0.0 22 KB

This Node.js script checks wallet balances across Ethereum, Arbitrum, and PolygonZKVM blockchains using Alchemy API. It compresses data, handles concurrent API requests efficiently, and writes non-zero balances to separate files. Ideal for blockchain applications.

License: MIT License

JavaScript 100.00%

balancechecker-pro's Introduction

Setting up Wallet Balance Check

  • This Node.js script efficiently checks wallet balances on Ethereum, Arbitrum, Optimism, and PolygonZKVM blockchains using the Alchemy API. It utilizes data compression for data processing and effectively manages parallel API requests. Non-zero balances are logged in separate files.

  1. Environment Setup:

    • Create three environment files in the ./API_Keys/ directory:
      • ./API_Keys/ethereum.env
      • ./API_Keys/arbitrum.env
      • ./API_Keys/optimism.env
      • ./API_Keys/polygonZKEVM.env
    • Each file should contain API keys for the respective blockchains, registered on the Alchemy platform. For example:
      ALCHEMY_API_KEY_1=API KEY
      ALCHEMY_API_KEY_2=API KEY
      
  2. Dependencies Installation:

    • Open the terminal.
    • Navigate to the directory containing the script.
    • Install dependencies by running the command:
      npm install
      
  3. Main File:

    • Ensure index.js is the main script file. You can configure the number of workers and the number of API keys each worker receives in the index.js file.
  4. Execution:

    • Run the command to start:
      node index.js
      
  5. Observing Results:

    • The results will be recorded in separate files based on the blockchain:
      • ./Win/ethereum.txt
      • ./Win/arbitrum.txt
      • ./Win/optimism.txt
      • ./Win/polygonZKVM.txt
  • Ensure the environment files contain the appropriate API keys, and the number of keys in each file is proportional. This script efficiently checks wallet balances across multiple blockchains.

Features:

  • Supports multiple blockchains (Ethereum, Arbitrum, Optimism, PolygonZKVM)
  • Uses Alchemy API to search for balances
  • Efficiently handles concurrent API requests
  • Data compression for improved performance
  • Records non-zero balances in separate files

Usage:

  1. Configure environment variables for the API keys.
  2. Run the script to check wallet balances.
  3. View the results in the respective output files.

Additional Notes:

  • You can add or remove blockchains for checking as desired. The balance check depends only on your internet speed.
  • Be sure to configure the number of workers according to your processor. Choose an optimal workload and number of workers.
  • By uncommenting lines 11-7120 in the worker.js file, you can specify any wallet address for testing.
  • This code is for informational purposes only. Never use others' wallets with malicious intent. Remember to practice ethics.

balancechecker-pro's People

Contributors

alexcs24 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.