Issue Details

Number
29772
Title
importaddress failed, Only legacy wallets are supported by this command.
Description
### Is there an existing issue for this? - [X] 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: ``` error code: -4 error message: Only legacy wallets are supported by this command ``` ### Expected behaviour success and list unspent utxo success. ### Steps to reproduce `bitcoin-cli importaddress mk4xz7tbbQDcQY68qYehydV9PRBWdVGNw1 "ray"` ``` error code: -4 error message: Only legacy wallets are supported by this command ``` `bitcoin-cli importpubkey 03f3de8f736a0bff7dfe446138acf98c23199c0710c704416dc9b6338bf37900e9 "ray_pub" true` ``` error code: -4 error message: Only 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_
URL
https://github.com/bitcoin/bitcoin/issue/29772
Closed by
Back to List