A simple tool that monitor resources and sends daily reports about states for all accounts.
Since the percentage of RAM is not very reliable metric, the estimated number of remaining transactions based on the average RAM per transaction size is used.
Using online blockchain monitor, for the considered accounts, the average value of the used RAM for the transfer
action is taken (160 bytes
).
Based on this, the estimated number of remaining transactions is calculated.
In my case there was an account which took 747 bytes
of RAM for each transfer
action. This account marked as heavy
and the estimated number of remaining transactions is calculated based on this number.
Such options will be added in the future release soon. For now you can modify it by directly changing the code.
The script is written by using Python 3.
pip3 install requests
pip3 install tabulate
Fill the config file:
[DEFAULT]
# The timeout for checking accounts in hours
TIMEOUT=5
# The timeout for sending statistics in hours
STATS_TIMEOUT=24
# Producer
PRODUCER=https://eos.greymass.com
ACCOUNTS=eosio.token,whaleextoken,community123,prospectorsg
# Credentials (Gmail server)
MAIL_LOGIN={[email protected]}
MAIL_PASS={password}
# Recipients
[email protected],[email protected]
# Common transaction (bytes)
TR_USE=160
# Heavy transaction (bytes)
HEAVY_TR_USE=747
HEAVY_ACCOUNTS=accountname
Run: python3 app.py
See the contribute file!
PRs accepted.
Small note: If editing the README, please conform to the standard-readme specification.
MIT © 2019 Volentix Labs Inc