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

const result = await detector.url("https://www.mountaintop-finance.com");

console.log(result);

Parameters

url
string
required

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:

result
object
required

Failure

However, if the check was unsuccessful, the object will contain the following:

result
object
required