Instance methods
url()
Use this method to check a URL to see if it is malicious.
Only the domain portion of the URL is checked. The path and query string are stripped before sending the request to the ChainPatrol API to preserve privacy and prevent leaking sensitive information.
Example
Parameters
The URL to check. This can be a full URL or a domain. The URL will be parsed to extract only the domain for checking.
Ex. https://google.com
or google.com
Return Value
The return value is a promise that resolves with an object containing the result of the check.
Success
If the check was successful, the object will contain the following properties:
Failure
However, if the check was unsuccessful, the object will contain the following:
Was this page helpful?