To use the ChainPatrol SDK, you’ll need an API key. You can get one by
emailing support@chainpatrol.io.
- Instantiating the
ThreatDetector
- Listening for navigation events
- Using the
ThreatDetector
to check a URL, and redirecting the user if the URL is a scam - Handling events from the warning page using the Relay class to forward events
chrome.webNavigation
, you would listen for navigation
events for links clicked in the application, or you could instead wait until the
user initiates a transaction and check the URL that initiated the transaction.
The next sections of the documentation will go into more detail about the
different classes exported by the SDK, and how to use them.