Author

Topic: Bitcoind getreceivedbyaddress dosen't work (Read 1009 times)

sr. member
Activity: 276
Merit: 284
July 26, 2014, 10:34:18 AM
#3
Make sure your parameters are properly set, is it working when you run it directly at the daemon?
If so to test use the same exact parameters in the vps, getreceivedbyaddress("address", 3) if its working its something with the parameters.
I had troubles like this before because of unproperly formatted parameters, for sendto for example you should use (float)$amount or it will trow you a 500 error even if $amount is "10.1"
member
Activity: 66
Merit: 10
Try to capture the underlying JSON RPC calls with a HTTP debugging proxy server app like Charles or Wireshark which will show you what happens behind the scenes.
newbie
Activity: 10
Merit: 0
Hello everyone,

I have bitcoind-version 0.9.01, installed on VPS.
My site communicate with bitcoind  via jsonRPCClient(PHP), i can use getInfo,sendtoaddress functions but when i tried to use getreceivedbyaddress(addr,conf) i got an 500 error.

Code:
fopen(http://[email protected]:8332/): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error

I have no idea why getInfo works well, and getreceivedbyaddress dosen't. Huh Huh
How can i debug this kind of errors?

thank you for your help in advance


Jump to: