whallets-cli.py 553 B

1234567891011121314151617
  1. """CLI for users to manage the wallet database and run research functions"""
  2. #TODO:
  3. # 1) Interacting with APIs
  4. # 2) easy adding data to the wallets_dict.json
  5. # 3) Scanning through APIs based on given parameters
  6. # 4) Prints options for the user (-h)
  7. import json
  8. def get_wallets():
  9. ''' Gets the info from the dictionary '''
  10. filename = 'wallets_dict.json'
  11. with open(filename) as f:
  12. all_wallets = json.load(f)
  13. evm_wallets = all_wallets['evm_wallets']
  14. spl_wallets = all_wallets['spl_wallets']
  15. return evm_wallets, spl_wallets