Bitcoin Forum
May 26, 2024, 08:59:06 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: RPC to bitcoind server. "Sendfrom" command fails -> Server error 500  (Read 726 times)
flash10101 (OP)
Full Member
***
Offline Offline

Activity: 372
Merit: 130


View Profile WWW
March 28, 2014, 09:35:38 AM
 #1

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?

COINLEND  |  The Lending-Bot for Bitfinex, Poloniex & Quoinex
▬▬▬▬▬▬▬▬  AUTOMATED  ▬  SIMPLE SETUP  ▬  FREE OF CHARGE  ▬  SAFE  ▬▬▬▬▬▬▬▬
\\\\\   Blog  FAQ  Calculator  Rates  Facebook  Twitter  Telegram  Instagram   /////
cp1
Hero Member
*****
Offline Offline

Activity: 616
Merit: 500


Stop using branwallets


View Profile
March 30, 2014, 04:37:34 PM
 #2

Does it ask you for the password or just give the error?

Guide to armory offline install on USB key:  https://bitcointalk.org/index.php?topic=241730.0
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!