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

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

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

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

When building applications that involve KYC/AML compliance, one critical aspect is screening against the Office of Foreign Assets Control (OFAC) Specially Designated National (SDN) list. This list includes entities designated by OFAC as being involved in activities that are contrary to U.S. foreign policy or national security interests.

To integrate SDN checks into your application efficiently and securely, you can use an API endpoint like api.verilexdata.com/api/v1/sanctions/stats. For example, you might want to check if a wallet address is on the OFAC list before allowing financial transactions.

Example Python Code for OFAC Sanction Screening


python
import requests

def check_address_on_sanctions(address):
    url = "https://api.verilexdata.com/api/v1/sanctions/stats"

    # Constructing the request payload. In practice, this would include your app's API key and possibly additional parameters.
    headers = {
        'X-API-KEY': 'YOUR_API_KEY',  # Replace with actual API key
        'Content-Type': 'application/json'
    }
    data = {
        "address": address,
        "type": "wallet"
    }

    response = requests.post(url, headers=headers, json=data)

    if response
Enter fullscreen mode Exit fullscreen mode