ThreatDetector
Overview
The ThreatDetector class wraps ChainPatrol’s phishing and scam detection APIs with caching, storage adapters, and URL checks for dApps and wallets.
A ThreatDetector allows you to easily build out community safety features
in your dApp or wallet. It is a smart wrapper around ChainPatrol’s APIs that allows you to
check if a website is a scam or not. It comes with a variety of storage adapters, so you can
easily cache the results of your checks and avoid making unnecessary API calls.