/Glizzy-CLI

Monitors an Ethereum account and notifies a Slack chat when the balance is too low.

Primary LanguageRust

Glizzy-CLI

Monitors an Ethereum account and notifies slack when the balance of the EOA is too low to pay gas fees for users.

Installation

0. Install Rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

1. Clone this repository

git clone https://github.com/crypdoughdoteth/Glizzy-CLI/

2. Create .env file with the following keys:

API_KEY, SLACK_BOT_TOKEN

API_KEY's corresponding value is your JSON-RPC provider's API key to connect to Ethereum,

SLACK_BOT_TOKEN is for the required access token from Slack,

3. Build it & run

Ensure that you are in the crate's root directory & in your terminal type cargo install --path <PATH-TO-FOLDER>

4. Use CLI

goonz_monitor --address <ADDRESS>

Optional args include: "threshhold" (value) & "chat" (slack channel)

Optional arg defaults: Threshhold = 300, Chat = general

To monitor multiple: pass -a before each address, -t before each threshhold value. To set the threshhold to be the same value for each address, pass only one value using the -t flag.

For more help use goonz_monitor --help