DEV Community

carrierone
carrierone

Posted on

OFAC Sanctions Screening for Developers: How to Check Addresses and Names

OFAC Sanctions Screening for Developers: How to Check Addresses and Names

When building KYC/AML compliance systems, financial technology applications, or any project that involves cryptocurrency wallets, understanding how to check addresses against the US Treasury’s Office of Foreign Assets Control (OFAC) SDN list is crucial. This list contains individuals and entities subject to US sanctions. Checking these entries can help prevent your projects from inadvertently facilitating transactions with prohibited parties.

Here's a quick Python script example demonstrating how you might integrate OFAC sanctions screening into your application:

import requests

def check_sanctions(screen_name):
    url = f"https://api.verilexdata.com/api/v1/sanctions/stats?name={screen_name}"
    response = requests.get(url)

    if response.status_code != 200:
        return None

    data = response.json()
    return data['isSDN']

# Example usage
address_or_screen_name = "example_address"
if check_sanctions(address_or_screen_name):
    print(f"The address {address_or_screen_name} is on the OFAC SDN list.")
else:
    print(f"The address {address_or_screen_name} is not on the OFAC SDN list.")
Enter fullscreen mode Exit fullscreen mode

Accessing OFAC Data via API

For more comprehensive and frequent checks, you can use our API endpoint at `https://api.verile

Top comments (0)