Skip to content

Python scripts for scraping OFAC's list of Specially Designated Nationals (The SDN List), with the goal of extracting blockchain addresses

Notifications You must be signed in to change notification settings

bhemen/OFAC-SDN-analysis

Repository files navigation

Python scripts for grabbing data from OFAC's Specially Designated Nationals (SDN) list

  • parse_sdn.py
    • Downloads the official SDN list from OFAC
    • Parses the xml, and creates the file parsed_sdn.csv, with the following four columns
      • detail - the detailed name of the entity (this is where a cryptocurrency address would be stored
      • names - a list of names given to the entity (comma separated)
      • start0 - start from date
      • start1 - start to date
      • end0 - end from date
      • end1 - end to date
  • check_address.py - a script to check whether SDN "details" are valid cryptocurrency addresses on a variety of different blockchains. Data saved to data/tagged_addresses.csv
  • get_contract_logs.py - generic script to get all the events from a target Ethereum contract (requires a local Ethereum node to run)
  • get_tornado_deploy_blocks.py - gets the block heights where the Tornado Cash contracts in the SDN list were deployed. Data saved to data/tornado_deploys.csv
  • get_tornado_logs.py - gets all the events from all the Tornado Cash contracts on the SDN list and stores them in the data/ folder
  • utils.py - helper script to get contract data from Etherscan
  • blockchain_stats.py - Displays some basic summary statistics about how many entries on the SDN list correspond to cryptocurrency addresses
Chain Number of Entries
Bitcoin 291
Ethereum 71
Tron 1
Ripple 1
Dogecoin 1

About

Python scripts for scraping OFAC's list of Specially Designated Nationals (The SDN List), with the goal of extracting blockchain addresses

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages