Skip to content

batch processing(multicall) python scripts to get ERC20 token account balances

License

Notifications You must be signed in to change notification settings

arahangua/token-balance

Repository files navigation

Token Balance Pipeline

This project implements a pipeline to fetch and process token balances on the Ethereum network, with a focus on Lido staking balances.

Files in the Repository

  • token_balance_pipeline.py: Main script for fetching and processing token balances (currently, we consider Lido).
  • utils.py: Utility functions for web3 interactions and balance calculations.
  • config.py: Configuration settings for the project.
  • .gitignore: Specifies intentionally untracked files to ignore.
  • LICENSE: License information for the project.

Setup

  1. Clone the repository
  2. Install the required dependencies:
    pip install -r requirements.txt
    
  3. Set up your environment variables (look into 'config.py' file)

Usage

Run the main script:

python token_balance_pipeline.py

Development

This project uses pre-commit hooks to maintain code quality. To set up the pre-commit hooks:

  1. Install pre-commit:
    pip install pre-commit
    
  2. Install the git hook scripts:
    pre-commit install
    

Code Quality

Code style: black Imports: isort Linting: ruff

This project follows the Black code style, uses isort for import sorting, and Ruff for linting.

License

See the LICENSE file for details.

About

batch processing(multicall) python scripts to get ERC20 token account balances

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages