npm.io
0.25.25 • Published 3 months ago

@polkadot/phishing

Licence
Apache-2.0
Version
0.25.25
Deps
5
Size
197 kB
Vulns
0
Weekly
0
Stars
207

@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');
}