@mantleio/balance-monitor
v0.1.0
Published
[Mantle] Forta Agent that reports whether certain accounts have fallen below some balance
Downloads
7
Readme
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
- Copy
.env.example
into.env
and set the appropriate values. - Copy
forta.config.example.json
intoforta.config.json
, and set the RPC endpoint (yes, this is duplicated in the .env file). 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