Sanction List

check()

Check if the provided address is in sanction list

Returns true if address is in sanction list. Returns false if address in not in sanction list, or is in incorrect format.

Signature

check(address: string): boolean

Example

const isInSanctionlist = dataSource
    .get("sanction-list")
    .check("0x0123456789abcdef0123456789abcdef01234567");
// false

Last updated