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

issue ethermachine opened this issue on January 3, 2022
  1. ethermachine commented at 12:42 AM on January 3, 2022: none

    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

  2. ethermachine added the label Bug on Jan 3, 2022
  3. achow101 commented at 4:51 AM on January 3, 2022: member

    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.

  4. MarcoFalke removed the label Bug on Jan 3, 2022
  5. MarcoFalke added the label Questions and Help on Jan 3, 2022
  6. MarcoFalke added the label Wallet on Jan 3, 2022
  7. gologo13 commented at 11:02 PM on April 13, 2022: none

    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.

  8. achow101 commented at 1:01 AM on April 14, 2022: member

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

  9. achow101 closed this on Apr 14, 2022

  10. DrahtBot locked this on Apr 14, 2023

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-21 15:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me