Is there an existing issue for this?
- I have searched the existing issues
Current behaviour
I want to import the address or public key into bitcoind because I want to list the unspent utxo based on my bitcoind node and then assemble the transaction on the client side. However, an error will be reported when importing the address and public key.
Error:
0error code: -4
1error message:
2Only legacy wallets are supported by this command
Expected behaviour
success and list unspent utxo success.
Steps to reproduce
bitcoin-cli importaddress mk4xz7tbbQDcQY68qYehydV9PRBWdVGNw1 "ray"
0error code: -4
1error message:
2Only legacy wallets are supported by this command
bitcoin-cli importpubkey 03f3de8f736a0bff7dfe446138acf98c23199c0710c704416dc9b6338bf37900e9 "ray_pub" true
0error code: -4
1error message:
2Only legacy wallets are supported by this command
bitcoind start cmd:
bitcoind -blocksonly=false -wallet=ray -addresstype=legacy
Relevant log output
No response
How did you obtain Bitcoin Core
Pre-built binaries
What version of Bitcoin Core are you using?
Bitcoin Core version v25.0.0
Operating system and version
Ubuntu 22.04.3 LTS
Machine specifications
No response