Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

importprivkey - This type of wallet does not support this command #23946

Closed
ethermachine opened this issue Jan 3, 2022 · 3 comments
Closed

Comments

@ethermachine
Copy link

When I run importprivkey it returns unsupported wallet instead of importing. Code:

bitcoin-cli importprivkey "priv_key" "label" false
error code: -4
error message:
This type of wallet does not support this command

Version
bitcoin-cli -version
Bitcoin Core RPC client version v22.99.0-9d099b02d8f0

Node fully synced (full node)
Chain: main
Blocks: 716934
Headers: 716934
Verification progress: 99.9999%
Difficulty: 24272331996979.97

image

@achow101
Copy link
Member

achow101 commented Jan 3, 2022

This occurs when your wallet is a descriptor wallet. It is expected behavior.

For builds of the master branch (and the future 23.0 release), newly created wallets will default to being descriptor wallets.

@gologo13
Copy link

gologo13 commented Apr 13, 2022

Hi there, I came across the same error. With legacy wallets, I can get UTXOs of watch_only addresses from listunspent after executing importaddress, but how can I get balances using descriptor wallets.
sorry, I know this could be a different topic, but I hope someone could answer my question.

@achow101
Copy link
Member

@gologo13 Create descriptors for your addresses and import them with importdescriptors.

@bitcoin bitcoin locked and limited conversation to collaborators Apr 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants