Created
February 10, 2021 00:41
-
-
Save buzzkillb/b2a7b620accb84e724d92626ffaf418c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#requires https://github.com/buzzkillb/python-denariusrpc and denarius daemon/QT wallet | |
from denariusrpc.authproxy import AuthServiceProxy, JSONRPCException | |
#DDNS to look up data | |
ddns_lookup_data = 'api:pricefeedDenarius' | |
# rpc_user and rpc_password are set in the denarius.conf file | |
rpc_connection = AuthServiceProxy("http://%s:%[email protected]:32369"%("rpcusername", "rpcpassword")) | |
name_show_feed = rpc_connection.name_show(ddns_lookup_data) | |
print(name_show_feed) | |
name_show_value = name_show_feed['value'] | |
print(name_show_value) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment