Skip to content

Instantly share code, notes, and snippets.

@buzzkillb
Created February 10, 2021 00:41
Show Gist options
  • Save buzzkillb/b2a7b620accb84e724d92626ffaf418c to your computer and use it in GitHub Desktop.
Save buzzkillb/b2a7b620accb84e724d92626ffaf418c to your computer and use it in GitHub Desktop.
#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