npm.io
0.0.4 • Published 3 years ago

@eth-optimism/balance-monitor

Licence
MIT
Version
0.0.4
Deps
3
Size
23 kB
Vulns
0
Weekly
0
Stars
6.5K

Minimum Balance Agent

Description

A forta agent which detects when a specified account balance is below the specified threshold.

Installing and building

yarn && yarn build

Running

  1. Copy .env.example into .env and set the appropriate values.
  2. Copy forta.config.example.json into forta.config.json, and set the RPC endpoint (yes, this is duplicated in the .env file).
  3. yarn run start:prod

Alerts

  • OPTIMISM-BALANCE-DANGER-[ACCOUNT_NAME]
    • Fired when the specified account balance is below the configured DANGER threshold
    • Severity is always set to "high"
    • Type is always set to "info"
    • Metadata "balance" field contains amount of wei in account

Keywords