ThreatDetector
Overview
ThreatDetector is used to detect Phishing and Scam websites using ChainPatrol’s APIs.
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.
Constructor
new ThreatDetector(options)
Creates a new instance of the ThreatDetector class.
Instance Methods
url()
Checks if a URL is a scam or not.
allow()
Adds a URL to the local allowlist.
block()
Adds a URL to the local blocklist.
ignore()
Adds a URL to the local ignorelist.
Was this page helpful?