Skip to main content

Documentation Index

Fetch the complete documentation index at: https://chainpatrol.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

The Storage.memory() adapter stores data in memory. This is the default adapter when you instantiate a new ThreatDetector instance. We don’t recommend using this adapter in production, as it will not persist data between sessions. But it is useful for testing and development.

Example

import { Storage } from "@chainpatrol/sdk";

const storage = Storage.memory({
  quota: 1024 * 1024 * 2, // 2MB
});