Bitcoin Forum
May 28, 2024, 09:15:41 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: getdifficulty with Visual Basic  (Read 806 times)
Ginsley (OP)
Full Member
***
Offline Offline

Activity: 234
Merit: 114


View Profile
December 22, 2013, 07:13:09 PM
 #1

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.

1HYeuyxKHGmFs1ARvAPGgmEW9pW6u8L26U
ebildude123
Full Member
***
Offline Offline

Activity: 223
Merit: 100


View Profile
December 23, 2013, 01:54:13 AM
 #2

http://stackoverflow.com/questions/18482179/capture-a-dos-command-response-into-a-string
Change to make it work accordingly for you.
Ginsley (OP)
Full Member
***
Offline Offline

Activity: 234
Merit: 114


View Profile
December 23, 2013, 10:45:38 AM
 #3

thanks alot!! that will help.

1HYeuyxKHGmFs1ARvAPGgmEW9pW6u8L26U
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!