@ethan-bedrock/balance-monitor
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

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

  • MANTLE-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

Package Sidebar

Install

npm i @ethan-bedrock/balance-monitor

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

23.6 kB

Total Files

14

Last publish

Collaborators

  • ethan3117