Blnk Watch is currently in beta. Send us a message
.env file.
The minimum configuration you need to add is DB_URL so Watch can read and sync transactions from Blnk Core when you run start, sync, or sync-once.
Watch loads .env by default.
Minimum required .env
Core connection configuration
Use these settings when Watch needs to read transactions from Blnk Core. This is required forstart, sync, and sync-once. It is not required if you run watch in API-only mode and inject transactions manually.
.env
Rule source configuration
These settings control where Watch loads rules from. You can load rules from a local directory or point Watch at a Git repository that contains.ws rule files.
If you set WATCH_SCRIPT_GIT_REPO, Watch clones the repository into WATCH_SCRIPT_DIR, processes the rules there, and keeps that local copy in sync.
.env
Git-based rule loading requires
git to be installed on the machine running Watch. For private HTTPS repositories, set WATCH_SCRIPT_GIT_TOKEN (and optionally WATCH_SCRIPT_GIT_USERNAME). For SSH URLs, load the appropriate SSH key on the host instead.Core sync configuration
These settings apply when Watch syncs transaction data from Blnk Core (e.g. withstart, sync, or sync-once). They control where the initial sync starts when there is no saved sync progress yet. They do not control rule evaluation.
Use SYNC_TRANSACTION_LOOKBACK when you want Watch to start from a relative window (e.g. the last 48 hours). Use SYNC_TRANSACTION_START_TIME when you want a fixed start time. If both are set, SYNC_TRANSACTION_START_TIME takes precedence.
.env
Alert webhook configuration
These settings control alert webhook delivery when one or more rules are triggered by a transaction within Watch. Watch can send alerts to a primary webhook and fall back to secondary or backup endpoints if needed..env