Bitcoin Forum
May 08, 2024, 06:48:13 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Other / Beginners & Help / Re: [Q] [Dev] Bitcoin-Qt.exe, RPC and cURL (win7 x64) on: June 23, 2013, 05:04:33 PM
Update: I'm trying to get the Python solution working as well, but I'm encountering issues using this approach also.

I installed jsonrpc and bitcoinrpc according to jgarzik's https://bitcointalk.org/index.php?topic=5314.0 but I get the following error when running the query:

Code:
<snip>\Python\Lib\site-packages\bitcoinrpc>query2.py
Traceback (most recent call last):
  File "<snip>\Python\lib\json\decoder.py", line 368, in raw_decode
    obj, end = self.scan_once(s, idx)
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<snip>\Python\Lib\site-packages\bitcoinrpc\query2.py", line 8, in <mod
ule>
    data = bitcoin.getwork()     # call bitcoin 'getwork' RPC
  File "<snip>\Python\Lib\site-packages\bitcoinrpc\authproxy.py", line 106, in
 __call__
    response = self._get_response()
  File "<snip>\Python\Lib\site-packages\bitcoinrpc\authproxy.py", line 132, in
 _get_response
    parse_float=decimal.Decimal)
  File "<snip>\Python\lib\json\__init__.py", line 332, in loads
    return cls(**kw).decode(s)
  File "<snip>\Python\lib\json\decoder.py", line 352, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "<snip>\Python\lib\json\decoder.py", line 370, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

I'd appreciate any feedback. Thank you.
2  Alternate cryptocurrencies / Altcoin Discussion / Re: [FTC] Free FeatherCoin Giveaway for Everyone! Over 1400 coins left to give away! on: June 23, 2013, 09:04:17 AM
6xrf3sY5B9b8iezDnYWVvziGEaJS2QgDpB

Thank you indeed!
3  Other / Beginners & Help / [Q] [Dev] Bitcoin-Qt.exe, RPC and cURL/Python (win7 x64) on: June 23, 2013, 08:52:05 AM
Hello Everyone,

This is my first post on BTCtalk, although not my first visit. I was hoping to post in the technical discussion section, but the rules forbid me. In any case, I hope someone could point me in the right direction.

I would like some help on successfully communicating with the bitcoin-qt.exe using RPC. I've read that I need to add an rpcuser and rpcpassword in the conf file - already done. I've looked at the API reference online and I've tried sending a command using cURL, but it's not going through.

The command is curl --user myuser --data-binary "{\"jsonrpc\": \"1.0\", \"id\":\"curltest\", \"method\": \"getinfo\", \"params\": [] }" -H "content-type: text/plain;" http://127.0.0.1:8332/, note the changes from the online documentation to run on Windows, mainly replacing " with \" and ' with ". The error I get is  Failed connect to 127.0.0.1:8332; No error.

Curl version is 7.30.0 with SSL. What am I missing?

Thanks in advance.


Regards,
Trafiq
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!