...preferably using python.
I've figured out how to query the blockchain for whatever I want, but I want to be able to access a running instance of darkcoind and retieve the output of 'masternode list' etc.
I've got as far as being able to use this in python:
and standard bitcoin queries work but it doesn't work for any of the masternode related queries (masternode count, masternode list etc.) that I'm interested in.
How are other people pulling this info to produce sites like http://drk.poolhash.org/masternode.html ?
Thanks.
edit: never mind, I can do it this way...
I've figured out how to query the blockchain for whatever I want, but I want to be able to access a running instance of darkcoind and retieve the output of 'masternode list' etc.
I've got as far as being able to use this in python:
Code:
from jsonrpc import ServiceProxy
access = ServiceProxy("http://stu:[email protected]:8332")
getinfo = str(access.getinfo())
print getinfo
mininginfo = str(access.getmininginfo())
print mininginfo
lag = str(access.listaddressgroupings())
print lag
etc.
How are other people pulling this info to produce sites like http://drk.poolhash.org/masternode.html ?
Thanks.
edit: never mind, I can do it this way...
Code:
r = subprocess.check_output('/home/stu/Downloads/darkcoin-0.10.11.6-linux/bin/64/darkcoind masternode list', shell=True)
print r
Last edited by a moderator: