Skip to main content
Blnk Watch is currently in beta. Send us a message
Blnk Watch is a lightweight, rule-based transaction monitoring engine. Watch evaluates transactions using rules written in a simple domain specific language (DSL) called WatchScript .ws. Here’s how it works: you send transactions to Watch, and it returns a risk verdict, so you can enforce limits, detect fraud, and stay compliant without running heavy infrastructure. In this quick start, you will:
  1. Start the Watch service
  2. Write a rule
  3. Send a transaction for evaluation
  4. See the risk decision
Let’s dive in!
1

Install Blnk Watch

Install Watch with direct download (no repo or Go required), then start the service:
By default Watch listens on port 8081. The service is ready when it starts listening on the port.
2

Create your first rule

Create a rules directory and add a rule file:
Add this rule to HighValueUSD.ws:
This rule triggers for any USD transaction above $4,000.
3

Send a transaction

Use the inject endpoint to send a transaction to Watch.
Request
If successful (200), Watch queues the transaction for evaluation.
Response
4

Check the result

Fetch the processed transaction:
You should see a response similar to:
Response
The verdict appears because the transaction amount, 5000 USD, triggered the rule.Try sending another transaction with a smaller amount, such as 3000 USD. Because it does not meet the rule condition, the rule will not trigger. You can also experiment with different amounts or currencies to see how the rule behaves.