diff --git a/blockstack_client/config.py b/blockstack_client/config.py index 5d5d19003..b7bfbd1f3 100644 --- a/blockstack_client/config.py +++ b/blockstack_client/config.py @@ -1422,3 +1422,15 @@ def configure_zonefile(name, zonefile, data_pubkey ): log.debug("zonefile is now:\n{}".format(json.dumps(zonefile, indent=4, sort_keys=True))) return zonefile + + +def get_blockstackd_url(config_path=CONFIG_PATH): + """ + Get the URL to the blockstackd instance + """ + conf = get_config(config_path) + blockstack_server = conf['server'] + blockstack_port = conf['port'] + protocol = conf['protocol'] + blockstack_hostport = '{}://{}:{}'.format(protocol, blockstack_server, blockstack_port) + return blockstack_hostport