Phishing and scam URLs are a huge problem online. To make it easier for wallet and dApp builders to protect their users from these threats, we’ve built a JavaScript SDK that you can use to interact with our threat detection APIs.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.
Installation
- npm
- yarn
- pnpm
Features
TypeScript support
Written in TypeScript with full type definitions
Cross-platform
Works in all modern browsers, Node.js, and browser extensions
Lightweight
Minimal dependencies
Built for scale
Designed with caching and rate-limiting built-in
Exports
| Name | Description |
|---|---|
| ThreatDetector | A simple interface for detecting phishing URLs |
| Storage | Storage cache implementation for ThreatDetector |
| Relay | A message relay for sharing events between browser extension contexts |
| ChainPatrolClient | Used to create a client that connects to the ChainPatrol API |