witwhalert

Trivial python bot that tracks high value transactions in the Witnet blockchain.

When the value of a transaction exceeds a configurable threshold, an alert is sent. Follow @witwhalert in Twitter for an example.

Uses typical libraries such as requests, dotenv and tweepy.

Getting started

  • Set up your python environment (use the venv module, or whatever floats your boat):

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
  • For integration with Twitter you will need a developer account. This bot uses the PIN-based OAuth flow (OAuth1.0a, APIv2). Please read the documentation to determine if this meets your needs.

  • Set your Twitter developer credentials and other config in the .env file :

cp .env.example .env
vi .env    # <- add your Twitter credentials here
  • Fire it up (probably better with screen/tmux/etc.)
python3 app/witwhalert.py

Acknowledgments

This project blatantly free rides the fantastic work of the Witnet explorer, by @drcpu. Kudos! ?

License

MIT.

GitHub

View Github