Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/polkadot/mod.ts>phishing.checkAddress

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

Determines if a host is in our deny list. Returns a string containing the phishing site if host is a problematic one. Returns null if the address is not associated with phishing.

Parameters

address: string | Uint8Array
optional
allowCached = [UNSUPPORTED]

Returns

Promise<string | null>