Author

Topic: RPC to bitcoind server. "Sendfrom" command fails -> Server error 500 (Read 735 times)

cp1
hero member
Activity: 616
Merit: 500
Stop using branwallets
Does it ask you for the password or just give the error?
full member
Activity: 372
Merit: 130
I set up a bitoind server on an ubuntu system. I talk to bitcoind with a remote java client over RPC. Executing commands like "getinfo", "getbalance" work like a charm. But if I try to send coins with the method "sendfrom", I get an server error 500. But it does not specify any details whats wrong with that request. I staring at the code for hours now but can not figure out, what causes the error. If I execute the command directly on the server it works.

This is the JSON object I send:

   
Code:
{"id":"d61066b5-275e-4802-9ab0-c49a1a1b6681","method":"sendfrom","params":["451","anyBTCAddr4v34GxXaUDNrBsXEP6ak3sVqmk","0.001"]}

I get this result:
Code:
    HTTP/1.1 500 Internal Server Error
    Status code: 500


- 451 is the account name
- anyBTCAddr4v34GxXaUDNrBsXEP6ak3sVqmk is the address
- 0.001 is the amount

If I execute the command like this directly on the server it works:
Code:
    bitcoind sendfrom 451 anyBTCAddr4v34GxXaUDNrBsXEP6ak3sVqmk 0.001

Is there any config paramater I have to set to allow remote sending of coins or or do I need additional escaping encoding of the parameters in some way?
Jump to: