Documentation Index
Fetch the complete documentation index at: https://docs.blnkfinance.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
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 asallow, 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.
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.
ruleName.ws
- 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.
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.
- 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.