Bitcoin Forum

Other => Beginners & Help => Topic started by: slackjaw on November 09, 2013, 09:22:43 PM



Title: Sendfrom JSON generating "Error 500".
Post by: slackjaw on November 09, 2013, 09:22:43 PM
I'm getting an internal server error 500 when posting a sendfrom command to bitcoin. Other commands are all working (listing accounts, listing transactions for accounts, etc.), so it's not the setup of the bitcoin RPC server.  I can send this same amount from account "AccountName" using the GUI just fine, so it's also not due to an insufficient fund or incorrect account name.

The json is as follows:

"{"jsonrpc":"1.0","id":"1","method":"sendfrom","Params":["AccountName","1BPdbD4Soi88YSm1bsxAKfdeP41AeDWN1o",0.0001]}"

Is there anything obvious I am doing wrong here?



Title: Re: Sendfrom JSON generating "Error 500".
Post by: slackjaw on November 09, 2013, 10:46:20 PM
"sendtoaddress" is getting the internal error 500 also. Address is valid, and I can send to it from the GUI.  The address is an address on a secondary account in my wallet.  Really wondering now why I can't send bit coins.  The the transaction that I received did have over 500 confirmations. Anyone?


edit: 

Something is really weird in Bitcoin.  It appears that some JSON-RPC functions only work if the word "params" in the json begins with a capital P (ie "Params"). The "SendToAddress" and "SendFrom" only work if the word params starts with an lowercase "p" ie, "params".  This is strange.  I've seen a few others complaining about "some functions work and some don't", and they were using the windows client like I. Maybe it's compiled incorrectly.