Source Link: https://bitcoin.stackexchange.com/questions/120540/method-not-found-when-trying-to-create-a-wallet-on-bitcoin-core
https://cdn.sstatic.net/Sites/bitcoin/Img/apple-touch-icon@2.png?v=b4864ba760f1
Here is my commands:
roro@roro-mainVirtualBox:~$ bitcoin-cli createwallet false
error code: -32601
error message:
Method not found
and also
roro@roro-mainVirtualBox:~$ bitcoin-cli help createwallet
help: unknown command: createwallet
which is weird, I just did a fresh install from source from version Bitcoin Core version v25.1
My bitcoin.conf
just contain this:
roro@roro-mainVirtualBox:~$ cat ~/.bitcoin/bitcoin.conf
testnet=1
txindex=1
and getblockchaininfo
give us this:
roro@roro-mainVirtualBox:~$ bitcoin-cli getblockchaininfo
{
"chain": "test",
"blocks": 2539470,
"headers": 2539470,
"bestblockhash": "0000000000000012dad1aac0ffd50ef93c1ef0dddb268f88b9caee9a0c474939",
"difficulty": 95840818.12092932,
"time": 1700495295,
"mediantime": 1700492332,
"verificationprogress": 0.9999986106651072,
"initialblockdownload": false,
"chainwork": "000000000000000000000000000000000000000000000c030f46d429a6b8e76a",
"size_on_disk": 33390875824,
"pruned": false,
"warnings": ""
}
The only thing special is that following this tutorial https://github.com/BlockchainCommons/Learning-Bitcoin-from-the-Command-Line/blob/master/03_3_Setting_Up_Your_Wallet.md
I tried bitcoin-cli -named createwallet wallet_name="" descriptors=false
which gave the same error, and also played with this computer network, but I dont think that is linked.