Bitcoin Forum
May 10, 2024, 10:52:01 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Error in console when trying to unlock my wallet (Bitcoin Core)  (Read 589 times)
Bitnoob12345 (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
August 14, 2017, 06:30:32 AM
 #1

Hi friends,

I am trying to move BTC from Bitcoin Core to Electrum. I got the adress and know there is balance when I looked at the adress on blockchain.info. I need to unluck the wallet before I can use dumpprivkey in console. The Bitcoin Core client is not fully synced yet. I get the following error code:


Example:

Walletpassphrase fg,91iK

Error: Error parsing JSON:,91iK



Any suggestions on what to do?  Shocked
1715381521
Hero Member
*
Offline Offline

Posts: 1715381521

View Profile Personal Message (Offline)

Ignore
1715381521
Reply with quote  #2

1715381521
Report to moderator
1715381521
Hero Member
*
Offline Offline

Posts: 1715381521

View Profile Personal Message (Offline)

Ignore
1715381521
Reply with quote  #2

1715381521
Report to moderator
1715381521
Hero Member
*
Offline Offline

Posts: 1715381521

View Profile Personal Message (Offline)

Ignore
1715381521
Reply with quote  #2

1715381521
Report to moderator
"In a nutshell, the network works like a distributed timestamp server, stamping the first transaction to spend a coin. It takes advantage of the nature of information being easy to spread but hard to stifle." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715381521
Hero Member
*
Offline Offline

Posts: 1715381521

View Profile Personal Message (Offline)

Ignore
1715381521
Reply with quote  #2

1715381521
Report to moderator
1715381521
Hero Member
*
Offline Offline

Posts: 1715381521

View Profile Personal Message (Offline)

Ignore
1715381521
Reply with quote  #2

1715381521
Report to moderator
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6635


Just writing some code


View Profile WWW
August 14, 2017, 07:32:41 AM
 #2

Enclose your password with single quotes. The JSON parser will parse the string you enter and it is confused by the comma there.

Bitnoob12345 (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
August 14, 2017, 08:50:27 AM
 #3

Enclose your password with single quotes. The JSON parser will parse the string you enter and it is confused by the comma there.

It says I have to add an amount of timeout to it, so I did that but got "Null" in return. And after a few attempts I get "Method not found" with an error code.


For example:

Walletpassphrase 'fg,91iK' 600

Null



Any ideas?
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6635


Just writing some code


View Profile WWW
August 14, 2017, 04:07:41 PM
 #4

It says I have to add an amount of timeout to it, so I did that but got "Null" in return. And after a few attempts I get "Method not found" with an error code.
That means that it worked. walletpassphrase will return null when it is successful. If it is not successful, you will get an error.

Bitnoob12345 (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
August 16, 2017, 10:18:17 AM
 #5

It says I have to add an amount of timeout to it, so I did that but got "Null" in return. And after a few attempts I get "Method not found" with an error code.
That means that it worked. walletpassphrase will return null when it is successful. If it is not successful, you will get an error.

Thank you so much! The single quotes and misunderstanding null was the problem, at last I received my privkey.
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!