Files
phishing/packages/phishing
github-actions[bot] fa8a4b7678 [CI Skip] bump/beta 0.15.3-8-x
skip-checks: true
2022-06-28 11:16:06 +00:00
..
2022-06-28 11:16:06 +00:00
2020-09-21 15:22:00 +02:00
2022-06-28 11:16:06 +00:00
2021-01-24 11:26:48 +01: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');
}