Balance-Scraper is a Node.js application designed to fetch and monitor the native gas balances of specified wallets across multiple EVM networks. It leverages Web3.js for blockchain interactions and Prometheus for metric collection. The application is configured via a config.json file, allowing for flexible and dynamic network and wallet management.
- Fetches native gas balances from multiple networks (EVM).
- Integrated with Prometheus for metric scraping.
- Docker support for easy deployment and scaling.
- Configurable through
config.jsonfor dynamic wallet and network management.
- Node.js (v18.5)
- Docker and Docker Compose (for containerized setup)
-
Clone the Repository:
git clone https://github.com/Matrixed-Link/balance-scraper.git cd balance-scraper -
Install Dependencies:
npm install
-
Configuration Setup:
Rename
config.json.exampletoconfig.jsonand update the file with appropriate settings and wallet details.
-
Direct Execution:
Run the application using Node.js:
node app.js
-
Docker Deployment:
-
Build and start the Docker container:
docker-compose up --build
-
The application will be running and accessible at
http://localhost:9091.
-
Metrics are exposed at the /metrics endpoint for Prometheus scraping. Configure Prometheus to scrape metrics from http://localhost:9091/metrics.
The provided Dockerfile and docker-compose.yml support seamless deployment. The docker-compose.yml includes configurations for auto-restarting and volume management. Use docker-compose commands for deployment.
We welcome contributions, issues, and feature requests. Feel free to check the issues page if you want to contribute.