def file_list_hosts( blockchain_id, wallet_keys=None, config_path=CONFIG_PATH ):
config_dir = os.path.dirname(config_path)<EOL>try:<EOL><INDENT>ret = blockstack_gpg.gpg_list_app_keys( blockchain_id, APP_NAME, wallet_keys=wallet_keys, config_dir=config_dir )<EOL><DEDENT>except Exception as e:<EOL><INDENT>ret = {'<STR_LIT:error>': traceback.format_exc(e)}<EOL><DEDENT>if '<STR_LIT:error>' in ret:<EOL><INDENT>log.error("<STR_LIT>" % ret['<STR_LIT:error>'])<EOL>return {'<STR_LIT:error>': '<STR_LIT>'}<EOL><DEDENT>hosts = []<EOL>for key_info in ret:<EOL><INDENT>hostname = key_info['<STR_LIT>']<EOL>hosts.append(hostname)<EOL><DEDENT>return {'<STR_LIT:status>': True, '<STR_LIT>': hosts}<EOL>
Given a blockchain ID, find out the hosts the blockchain ID owner has registered keys for.
Return {'status': True, 'hosts': hostnames} on success
Return {'error': ...} on failure