mirror of
https://github.com/pezkuwichain/phishing.git
synced 2026-08-01 00:55:43 +00:00
0d7e7ea7b1
* Nightly CI checks updates * Remove unused replace
@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');
}