Skip to main content
Module

x/polkadot/mod.ts>phishing.checkIfDenied

Package publishing for deno.land/x/polkadot
Go to Latest
function phishing.checkIfDenied
import { phishing } from "https://deno.land/x/polkadot@0.2.12/mod.ts";
const { checkIfDenied } = phishing;

Determines if a host is in our deny list. Returns true if host is a problematic one. Returns false if the host provided is not in our list of less-than-honest sites.

Parameters

host: string
optional
allowCached = [UNSUPPORTED]

Returns

Promise<boolean>