Author

Topic: SOLVED - Bitcoin Core have problem with walletpassphrase having special chars (Read 502 times)

staff
Activity: 3458
Merit: 6793
Just writing some code
If you password contains double quotes, then surrounding your password with double quotes is not going to help as the string parse will only read the string surrounded by the first double quote. To have such special characters in your passphrase, you will need to surround your entire passphrase string with single quotes. However if you have single quotes in your password, you will need to escape those single quotes with \'
legendary
Activity: 3038
Merit: 2166
Playgram - The Telegram Casino
Escape quotation marks " within the passphrase with backslashes like so: \"

Escape backslashes \ within the passphrase with backslashes like so: \\
( ^ not 100% sure if necessary )

Unless you have some funky whitespace characters in your passphrase the rest shouldn't matter.
legendary
Activity: 4130
Merit: 1307
Are you escaping the special characters and/or the entire paraphrase?
newbie
Activity: 1
Merit: 0
Bitcoin Client Software and Version Number: Bitcoin Core 0.14.2
Operating System: macOS 10.12.6
System Hardware Specs: 42.9 GHz Quad Core CPU with 8 GB RAM and 56 GB free hard drive space.
Description of Problem: Bitcoin Core seems have problem with walletpassphrase having special characters
Any Related Addresses: None
Any Related Transaction IDs: None
Screenshot of the problem: None
Log Files from the Bitcoin Client: None


Hi all,
I face a kind of problem when I want to use my walletpassphrase in the debug console.
(When I use it in the GUI all works fine with my walletpassphrase)

But in console I get:
walletpassphrase "xxxxx" 600

 - Error: invalid command line

I have to say the my passphrase is quite long and is including special chars like ,="_ and '

for me it looks like the console can't handle the " or ' , maybe ?

any help / ideas

kr
Michael


SOLVED - escaping did the trick
thank you all very much
Jump to: