Files
phishing/packages/phishing
Husni 78a6704878 Update all.json (#5627)
* update all.json

* update all.json

* fix: update headers
2026-01-02 02:08:14 +01:00
..
2026-01-02 02:08:14 +01:00
2025-12-31 01:02:48 +00:00
2021-01-24 11:26:48 +01:00
2023-05-18 11:21:13 +03:00
2023-05-18 11:21:13 +03:00

@polkadot/phishing

To check for sites that are on the list -

import { checkIfDenied } from '@polkadot/phishing';

const isOnDeny = await checkIfDenied(window.location.host);

console.log(`isOnDeny=${isOnDeny}`);

To check for addresses that are on the list -

import { checkAddress } from '@polkadot/phishing';

const info = await checkAddress('1b....');

if (info) {
  console.log(`The address is reported as ${info}`);
} else {
  console.log('Not reported');
}