Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: LZKTV520 on January 31, 2021, 10:56:47 PM



Title: Please help me with the issue of unlocking bitcoin core wallet.
Post by: LZKTV520 on January 31, 2021, 10:56:47 PM
Hello everyone, I am from China. When I created the bitcoin core disconnected wallet, the password could not be unlocked, and the prompt: method not found (code-32601). I am sure that the password and steps are correct, because I can unlock it normally on a wallet that is normally connected to the Internet. Because I want to deposit my BTC in an absolutely safe place, I am afraid that this happens now. Please help me, seniors!


Title: Re: Please help me with the issue of unlocking bitcoin core wallet.
Post by: BitMaxz on January 31, 2021, 11:54:39 PM
What is the exact error did you get?

Did you use this command bitcoin-cli getaddressesbyaccount ""
and you get this error below?

Code:
error code: -32601
error message:
Method not found

Does it seem the account API was removed since Bitcoin Core 0.18.0 version?
Just found the answer from https://bitcoin.stackexchange.com/questions/88916/bitcoin-core-getaddressesbyaccount-method-not-found-32601


Title: Re: Please help me with the issue of unlocking bitcoin core wallet.
Post by: LZKTV520 on February 01, 2021, 12:07:36 AM
What is the exact error did you get?

Did you use this command bitcoin-cli getaddressesbyaccount ""
and you get this error below?

Code:
error code: -32601
error message:
Method not found

Does it seem the account API was removed since Bitcoin Core 0.18.0 version?
Just found the answer from https://bitcoin.stackexchange.com/questions/88916/bitcoin-core-getaddressesbyaccount-method-not-found-32601

I created a new wallet file and set a password on a computer without internet access.  But when I want to unlock and extract the private key, it displays "Method not found (core-32601)".  I unlock it like this: walletpassphrase password unlock duration (seconds)


Title: Re: Please help me with the issue of unlocking bitcoin core wallet.
Post by: ranochigo on February 01, 2021, 04:22:49 AM
I created a new wallet file and set a password on a computer without internet access.  But when I want to unlock and extract the private key, it displays "Method not found (core-32601)".  I unlock it like this: walletpassphrase password unlock duration (seconds)
The format should be like this: walletpassphrase "PASSWORD" 600

Replace the PASSWORD with your own.


Title: Re: Please help me with the issue of unlocking bitcoin core wallet.
Post by: nc50lc on February 01, 2021, 05:28:01 AM
When I created the bitcoin core disconnected wallet, the password could not be unlocked, and the prompt: method not found (code-32601).
Whenever you see that "prompt" 'method not found', it's most likely that you've typed an incorrect command.
Check for typo in walletpassphrase then use the format posted in the above post.


Title: Re: Please help me with the issue of unlocking bitcoin core wallet.
Post by: LZKTV520 on February 01, 2021, 08:23:46 AM
I created a new wallet file and set a password on a computer without internet access.  But when I want to unlock and extract the private key, it displays "Method not found (core-32601)".  I unlock it like this: walletpassphrase password unlock duration (seconds)
The format should be like this: walletpassphrase "PASSWORD" 600

Replace the PASSWORD with your own.

This is how I do it, but it doesn't work!  I unlocked it without synchronizing the blockchain.


Title: Re: Please help me with the issue of unlocking bitcoin core wallet.
Post by: NotATether on February 01, 2021, 08:55:05 AM
Where did you download bitcoin core from, and do you know if you or the person who distributed it compiled bitcoin core without wallet support?


If you run bitcoin-cli help, what RPC methods does it list? Is walletpassphrase included in the list? It not then that means your build of Core has no wallet support and you need to download it again from another location that does (such as bitcoincore.org).


Title: Re: Please help me with the issue of unlocking bitcoin core wallet.
Post by: nc50lc on February 01, 2021, 09:52:38 AM
This is how I do it, but it doesn't work!  I unlocked it without synchronizing the blockchain.
Those commands will work whether your node is synchronized, disconnected or not.

Based from the hint above, do you somehow have a disablewallet=1 entry in your bitcoin.conf file or as an additional start parameter in your shortcut?
Because disabling the wallet will make 'wallet RPC commands' like walletpassphrase disabled.


Title: Re: Please help me with the issue of unlocking bitcoin core wallet.
Post by: LZKTV520 on February 01, 2021, 10:55:59 AM
This is how I do it, but it doesn't work!  I unlocked it without synchronizing the blockchain.
Those commands will work whether your node is synchronized, disconnected or not.

Based from the hint above, do you somehow have a disablewallet=1 entry in your bitcoin.conf file or as an additional start parameter in your shortcut?
Because disabling the wallet will make 'wallet RPC commands' like walletpassphrase disabled.

After I downloaded the Bitcoin core wallet, no other operations have been performed. If I disable it, how can I find out?  Then how to unban it?  I'm a novice, please!


Title: Re: Please help me with the issue of unlocking bitcoin core wallet.
Post by: NotATether on February 01, 2021, 11:14:26 AM
This is how I do it, but it doesn't work!  I unlocked it without synchronizing the blockchain.
Those commands will work whether your node is synchronized, disconnected or not.

Based from the hint above, do you somehow have a disablewallet=1 entry in your bitcoin.conf file or as an additional start parameter in your shortcut?
Because disabling the wallet will make 'wallet RPC commands' like walletpassphrase disabled.

After I downloaded the Bitcoin core wallet, no other operations have been performed. If I disable it, how can I find out?  Then how to unban it?  I'm a novice, please!

If you are using the GUI, then open Bitcoin Core, go to the menu entry Window > Console, and in the command prompt that appears, type "help".

It will display output like this:

https://i.ibb.co/cxwr8JS/Capture.png

See if walletpassphrase is in the list (or if a ==Wallet== entry is listed).



Title: Re: Please help me with the issue of unlocking bitcoin core wallet.
Post by: LZKTV520 on February 01, 2021, 12:13:43 PM
This is how I do it, but it doesn't work!  I unlocked it without synchronizing the blockchain.
Those commands will work whether your node is synchronized, disconnected or not.

Based from the hint above, do you somehow have a disablewallet=1 entry in your bitcoin.conf file or as an additional start parameter in your shortcut?
Because disabling the wallet will make 'wallet RPC commands' like walletpassphrase disabled.

After I downloaded the Bitcoin core wallet, no other operations have been performed. If I disable it, how can I find out?  Then how to unban it?  I'm a novice, please!

If you are using the GUI, then open Bitcoin Core, go to the menu entry Window > Console, and in the command prompt that appears, type "help".

It will display output like this:

https://i.ibb.co/cxwr8JS/Capture.png

See if walletpassphrase is in the list (or if a ==Wallet== entry is listed).



Okay, I’ll go home and try, what if I don’t?  I downloaded it from the official website.


Title: Re: Please help me with the issue of unlocking bitcoin core wallet.
Post by: nc50lc on February 01, 2021, 12:16:25 PM
Based from the hint above, do you somehow have a disablewallet=1 entry in your bitcoin.conf file or as an additional start parameter in your shortcut?
Because disabling the wallet will make 'wallet RPC commands' like walletpassphrase disabled.
After I downloaded the Bitcoin core wallet, no other operations have been performed. If I disable it, how can I find out?  Then how to unban it?  I'm a novice, please!
The most noticeable one is the GUI, there will be no wallet UI, just the 'Console', 'Information', 'Peer' and 'Network traffic' tabs.

To re-enable the wallet (if disablewallet is the culprit):
Check your Bitcoin data directory (location (https://en.bitcoin.it/wiki/Data_directory#Default_Location)) if there's a "bitcoin.conf" file inside it, if there is, open it using a text editor and check if there's a disablewallet=1 line.
For a possible added start parameter, if you're on Windows and running using a shortcut, check its properties and look for -disablewallet at the end of the Target, if there is, remove it.


Title: Re: Please help me with the issue of unlocking bitcoin core wallet.
Post by: LZKTV520 on February 01, 2021, 07:44:13 PM
Thank you for your help. I have found a solution. No one knows on the Chinese website. I will tell Chinese netizens.
The solution is here:https://bitcoin.stackexchange.com/questions/59521/bitcoin-core-command-line-walletpassphrase-incorrect-but-works-for-the-main-syst


Title: Re: Please help me with the issue of unlocking bitcoin core wallet.
Post by: LZKTV520 on February 01, 2021, 07:54:04 PM
Based from the hint above, do you somehow have a disablewallet=1 entry in your bitcoin.conf file or as an additional start parameter in your shortcut?
Because disabling the wallet will make 'wallet RPC commands' like walletpassphrase disabled.
After I downloaded the Bitcoin core wallet, no other operations have been performed. If I disable it, how can I find out?  Then how to unban it?  I'm a novice, please!
The most noticeable one is the GUI, there will be no wallet UI, just the 'Console', 'Information', 'Peer' and 'Network traffic' tabs.

To re-enable the wallet (if disablewallet is the culprit):
Check your Bitcoin data directory (location (https://en.bitcoin.it/wiki/Data_directory#Default_Location)) if there's a "bitcoin.conf" file inside it, if there is, open it using a text editor and check if there's a disablewallet=1 line.
For a possible added start parameter, if you're on Windows and running using a shortcut, check its properties and look for -disablewallet at the end of the Target, if there is, remove it.


Thank you very much for your help, I have found the problem, and I will try my best to help others in the future!


Title: Re: Please help me with the issue of unlocking bitcoin core wallet.
Post by: nc50lc on February 02, 2021, 02:28:21 AM
-snip-
Thank you very much for your help, I have found the problem, and I will try my best to help others in the future!
Hmm, that's odd.
If that was the issue, you shouldn't be getting the "method not found (code-32601)" error; instead, it should be returning 'help' for walletpassphrase command if there's a 'space' in your password or a 'blank error message' / 'invalid command line' if there's an invalid character when you didn't add the quotation marks.

Anyways, good that it's now solved at the end although there are inconsistencies in this thread.


Title: Re: Please help me with the issue of unlocking bitcoin core wallet.
Post by: HCP on February 02, 2021, 09:06:51 AM
Hmm, that's odd.
If that was the issue, you shouldn't be getting the "method not found (code-32601)" error; instead, it should be returning 'help' for walletpassphrase command if there's a 'space' in your password or a 'blank error message' / 'invalid command line' if there's an invalid character when you didn't add the quotation marks.
Given the OPs location and comments, it is possibly related to the use of non-Latin characters (ie. Chinese) in the passphrase... and the way that the system is parsing it... TBH, I'm not surprised it might be something as simple as using ' instead of "...

I've had a bugger of a time with Bitcoin Core parsing JSON because of similar ' vs " issues :P


Title: Re: Please help me with the issue of unlocking bitcoin core wallet.
Post by: NotATether on February 02, 2021, 09:16:55 AM
Given the OPs location and comments, it is possibly related to the use of non-Latin characters (ie. Chinese) in the passphrase... and the way that the system is parsing it... TBH, I'm not surprised it might be something as simple as using ' instead of "...

I've had a bugger of a time with Bitcoin Core parsing JSON because of similar ' vs " issues :P

It's probably bigger than that. I don't think bitcoin core's console parses other character sets outside of ASCII (maybe it parses UTF-8 input but I haven't verified this on GitHub yet, will do so later), so if you enter a password in one character set, and China does have its own localized character set that Windows possibly uses by default, then when you type the password again but using a different character set, I suspect they're not going to be compared by character, they're going to be compared byte-for-byte, which will always fail the password check.

It would be a useful endeavor indeed to make a patch that detects the character set used in the input and translates it into its equivalent UTF-8 character internally. UTF-8 spans practically all the character sets that Windows bundles so character comparison becomes easier.

This is less of an issue on Unix-based systems since those use UTF-8 as the system default character set.



Title: Re: Please help me with the issue of unlocking bitcoin core wallet.
Post by: nc50lc on February 02, 2021, 12:34:00 PM
Hmm, that's odd.
If that was the issue, you shouldn't be getting the "method not found (code-32601)" error; -snip-
Given the OPs location and comments, it is possibly related to the use of non-Latin characters (ie. Chinese) in the passphrase... and the way that the system is parsing it... TBH, I'm not surprised it might be something as simple as using ' instead of "...
Even so, there're some inconsistencies because if there's some something wrong with the passphrase and there's no quotation mark, the result should be the 'help' for walletpassphrase.
Instead, he said it's "method not found (code-32601)".
So I guess if it's the keyboard's fault, he may have used "Pin Yin" when typing the walletpassphrase command at the time when he posted the OP.

Then somehow solved that first issue by using a different keyboard format, copy pasting the command or other.