@chainpatrol/sdk
Overview
Use our JavaScript SDK to interact with ChainPatrol’s APIs
Phishing and scam URLs are a huge problem in Web3. 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.
Installation
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 |
Was this page helpful?