Skip to content

w3f/polkadot-watcher-transaction

Repository files navigation

CircleCI

polkadot-watcher-transaction

How to Run

Requirements

git clone https://github.com/w3f/polkadot-watcher-csv-exporter.git
cd polkadot-watcher-csv-exporter
cp config/main.sample.yaml config/main.yaml 
#just the first time

yarn
yarn build
yarn start

About

The main use case of this application consits of a scanner that can be configured to start from a configured block number, and then it keeps monitoring the on-chain situation delivering alerts to a notifier. For instance, you can deliver the alerts to a matrixbot instance, which will forward the message to a Matrix/Synapse channel.

Monitoring Features

  • detection of BalanceTransfer events (sent to a Notifier)
  • detection of XCM Sent events (sent to a Notifier)
  • detection of account's Balance under a certain threshold (exposed as Prometheus metrics)

Configuration

A sample config file is provided here