Skip to content

Latest commit

 

History

History
25 lines (23 loc) · 1.76 KB

README.md

File metadata and controls

25 lines (23 loc) · 1.76 KB

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