Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: Ginsley on December 22, 2013, 07:13:09 PM



Title: getdifficulty with Visual Basic
Post by: Ginsley on December 22, 2013, 07:13:09 PM
Hi,

as i have no clue, how to gather data from a coins daemon, i wanted to ask here, if and how it is possible to do so.

I am running the daemon of EmeraldCoin (emeraldd) on my local system.
RPC-Port is set to port 9050 - local mining on this port works fine.

By running "emeraldd getdifficulty" from the command-line, i get the latest difficulty value.

Now i want to "ask" emeraldd from within a Visual Basic program for its latest difficulty.

1. Is that possible? (i think so)
2. How can i do that? I googled for several hours, but havnt found something usable (or i did not understand it properly).

I hope, someone can help me with that. Thanks in advance.


Title: Re: getdifficulty with Visual Basic
Post by: ebildude123 on December 23, 2013, 01:54:13 AM
http://stackoverflow.com/questions/18482179/capture-a-dos-command-response-into-a-string
Change to make it work accordingly for you.


Title: Re: getdifficulty with Visual Basic
Post by: Ginsley on December 23, 2013, 10:45:38 AM
thanks alot!! that will help.