Start here
How Blnk Watch Works
See how transactions enter Watch, how rules are evaluated, and how a final risk verdict is produced.
Every transaction in your system carries signals that indicate risk. A payment might exceed a limit, a payout might violate a policy, or a pattern of activity might suggest abuse.
Blnk Watch evaluates those signals using rules you define and returns a risk verdict for each transaction. It runs alongside your Blnk Ledger and allows you to apply checks before, during, or after a transaction is processed. When a transaction occurs, Watch evaluates it against your rules and produces a verdict such as allow, approve, alert, review, deny, or block.
With Watch, it becomes easier to enforce controls within your application such as:
- Detecting and acting on transactions that show patterns of fraud or compliance risk
- Enforcing transaction limits by blocking, reviewing, or tracking threshold breaches
- Monitoring transaction velocity to spot spikes or unusual activity patterns
- Reviewing or tracking payouts and withdrawals based on defined conditions
- Tracking how discount codes or promotions are used to detect abuse or measure usage
- Enforcing operational guardrails like identifying duplicates, missing fields, or unexpected flows
Evaluation workflow
Once a transaction enters Watch, it follows the same lifecycle every time:
- It checks the transaction against the active rules.
- Multiple rules can trigger for the same transaction.
- Each triggered rule contributes a score and a reason.
- Watch consolidates all triggered rules into a single final decision.
The result is a consolidated risk assessment that your system can use to determine what should happen next.
Rule evaluation
Rules define the decision logic used by Watch. They determine how transactions are evaluated and ultimately classified.
You define and manage these rules using watch scripts .ws, our DSL. Every rule contains two main parts:
- A
whencondition that describes the pattern Watch should look for in a transaction. - A
thenaction that defines the outcome when the condition triggers, including the verdict, score, and reason.
rule RuleName {
when condition
then verdict
score value
reason "explanation"
}
During evaluation, Watch runs every transaction through the active rule set and updates the transaction result with only the rules that trigger.
The evaluation process follows a few simple principles:
- If a rule does not trigger for the transaction, it contributes nothing to the evaluation.
- If a rule triggers, it produces a risk signal consisting of a verdict, score, and reason.
- Multiple rules can trigger for the same transaction during a single evaluation cycle.
- All triggered signals are preserved and later consolidated into the final decision.
Because of this evaluation model, rule design works best when rules are small and focused. We recommend creating each rule to capture a single risk pattern or control.
Final verdict
After collecting all rule outcomes, Watch produces one consolidated result for the transaction. This consolidation step turns many rule-level outcomes into one application-ready decision:
final_risk_scoresummarizes the combined risk signals.final_verdictrepresents the action state your system should use.final_reasonexplains the main context behind that decision.
Your app can then act in a deterministic way:
- Continue normal processing for
allow. - Explicitly accept trusted transactions for
approve. - Notify or log mild anomalies for
alert. - Route the transaction for additional checks for
review. - Reject policy-violating transactions for
deny. - Stop or reject the transaction for
block.