Bitcoin Forum
December 13, 2024, 02:58:31 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin-CLI Issue - Error Parsing JSON:sendtoaddress  (Read 2044 times)
antimattercrusader2 (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
February 06, 2015, 07:00:26 AM
 #1

Hey,This may very well be a stupid question - but I am trying to send some BTC using the command line interface (Windows 7) using the following commands:

bitcoin-cli walletpassphrase xxxxxxxx sendtoaddress "13Eu3B2VG8irHcwX3b2Emk1LaDVMDDamJB" 0.01 "test" "2nd wallet"
or
bitcoin-cli walletpassphrase xxxxxxxx sendtoaddress 13Eu3B2VG8irHcwX3b2Emk1LaDVMDDamJB 0.01 "test" "2nd wallet"

But no matter which variation I try of above, I receive the following error:

error: Error Parsing JSON:sendtoaddress

I've also tried the same with bitcoind and had the same results. Does anyone have any suggestions? I'll admit I am pretty new to command line anything, but alot of googling and searching has not revealed an answer. Any assistance is greatly appreciated!
scientific
Newbie
*
Offline Offline

Activity: 32
Merit: 0


View Profile
February 06, 2015, 03:36:53 PM
 #2

Hey,This may very well be a stupid question - but I am trying to send some BTC using the command line interface (Windows 7) using the following commands:

bitcoin-cli walletpassphrase xxxxxxxx sendtoaddress "13Eu3B2VG8irHcwX3b2Emk1LaDVMDDamJB" 0.01 "test" "2nd wallet"
or
bitcoin-cli walletpassphrase xxxxxxxx sendtoaddress 13Eu3B2VG8irHcwX3b2Emk1LaDVMDDamJB 0.01 "test" "2nd wallet"

But no matter which variation I try of above, I receive the following error:

error: Error Parsing JSON:sendtoaddress

I've also tried the same with bitcoind and had the same results. Does anyone have any suggestions? I'll admit I am pretty new to command line anything, but alot of googling and searching has not revealed an answer. Any assistance is greatly appreciated!

Because that's not the correct syntax. Use these:

Code:
bitcoin-cli walletpassphrase <passphrase> <timeout> 
bitcoin-cli sendtoaddress <bitcoinaddress> <amount> [comment] [comment-to]

And see here: https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list
fenghush
Sr. Member
****
Offline Offline

Activity: 658
Merit: 250



View Profile
February 06, 2015, 03:38:00 PM
 #3

You can't just bundle two different RPC commands in one.

QuantumCurrency
Jr. Member
*
Offline Offline

Activity: 45
Merit: 10

Exchange at the speed of Quantum Entanglement


View Profile
February 06, 2015, 04:35:30 PM
 #4

New Account, it's Antimattercrusader/2

Thanks for the help. I got it to work, I just wasn't understanding the RPC Commands. Smiley
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!