Build Custom Detector
This guide walks you through building your custom detector on the Venn Network. Use this as a starting point to implement your detection logic which will secure transactions on the Venn Network.
Last updated
Was this helpful?
This guide walks you through building your custom detector on the Venn Network. Use this as a starting point to implement your detection logic which will secure transactions on the Venn Network.
Last updated
Was this helpful?
Clone (or fork) venn-custom-detection Template.
Implement your detection logic.
Test that your detector responds with detection results.
Deploy your detector and connect it to your
Begin by cloning or forking the .
Install the required packages using your preferred package manager:
Start the detector locally to begin working on your detection logic:
The core of your custom detector logic is the DetectionService
, found in src/modules/detection-module/service.ts
. This service implements a detect
method that receives a DetectionRequest
(an enriched view of an EVM transaction) and returns a DetectionResponse
.
Or
When you’re ready to deploy your detector service, choose from one of the following options:
Build the Service:
Start the Service:
Build a Docker image for your detector:
Deploy the Docker container to your production environment as needed.
That's it! Welcome to Venn. 🎉
For more details, request validation, and response structures, refer to our .
You can simulate transactions using the , a dedicated testing environment specifically designed to evaluate your custom detection model. With the Security Sandbox, you can simulate any transactions from the preferred chains or choose past hacks to test against your detection model.
You can simulate transactions by sending them directly to DetectionRequest
payload (refer to our for details) and evaluate your custom detection model in the returned DetectionResponse
.