Skip to content
docs

PhishingDetector

Defined in: phishing.ts:28

new PhishingDetector(list): PhishingDetector

Defined in: phishing.ts:34

PhishingList

PhishingDetector

get size(): number

Defined in: phishing.ts:41

number

brandInLabel(host): { known: string; label: string; } | null

Defined in: phishing.ts:74

metamask.io-login.com, app-uniswap.com, uniswap.org.evil.net: a known site’s name used as (part of) a label of a host that is not that site. Names shorter than 5 characters are skipped (too many honest matches).

string

{ known: string; label: string; } | null


check(hostOrOrigin): HostCheck

Defined in: phishing.ts:45

string

HostCheck


lookalike(host): string | null

Defined in: phishing.ts:87

eth-phishing-detect’s fuzzy check: the host (minus the TLD and a www.) within tolerance edits of a known one.

string

string | null


refusal(hostOrOrigin): string | null

Defined in: phishing.ts:66

Why hostOrOrigin must be refused outright, or null: a host on the blocklist (or under a listed domain) and not on the allowlist. Lookalikes and punycode only warn (check). Wire it as ApprovalQueueOptions.refuse and RouterDeps.refuse.

string

string | null