dumpprivkey - This type of wallet does not support this command (code -4) #27693

issue faca5 openend this issue on May 18, 2023
  1. faca5 commented at 7:27 am on May 18, 2023: none

    Is there an existing issue for this?

    • I have searched the existing issues

    Current behaviour

    Hello.

    When I try export private key for bitcoin address i got: This type of wallet does not support this command (code -4)

    I tried on all 4 types of bitcoin address base58 and bech32 (legacy, segwit…).

    I’m using ZIP version of Bitcoin Core v23.1.0 downloaded from: https://bitcoincore.org/bin/bitcoin-core-23.1/bitcoin-23.1-win64.zip

    Expected behaviour

    It should display private key.

    Bitcoin address cannot be found?!

    If I insert random value for bitcoin address i got this error.

    Steps to reproduce

    1. Run Bitcoin Core v23.1.0
    2. Select Help >Console
    3. Insert command and press enter dumpprivkey <bitcoin_address>

    Relevant log output

    No response

    How did you obtain Bitcoin Core

    Compiled from source

    What version of Bitcoin Core are you using?

    Bitcoin Core v23.1.0

    Operating system and version

    Windows

    Machine specifications

    /

  2. willcl-ark commented at 7:33 am on May 18, 2023: member
    Are you using a descriptor wallet? If so see conversation here: https://github.com/bitcoin/bitcoin/issues/26046
  3. maflcko added the label Wallet on May 18, 2023
  4. maflcko added the label RPC/REST/ZMQ on May 18, 2023
  5. maflcko added the label Questions and Help on May 18, 2023
  6. faca5 commented at 7:55 am on May 18, 2023: none

    Looks like.

    I have just downloaded the latest version for Windows, created a Bitcoin address and like to export private keys.

    None of bitcoin address types any more works to export private keys: Base58 (Legacy) Base58 (P2SH-SegWit) Bech32 (SegWit) Back32m (Taproot)

    When you are the owner of a bitcoin address you expect to get PRIVATE and PUBLIC keys.

    In the latest version of Bitcoin core I haven’t found any settings to set a bitcoin address as a descriptor or normal one.

    Any idea how to create a bitcoin address in the latest version of Bitcoin core which can be exported PRIVATE key?

    I tried to use RPC but i got an error rpcuser and password is not set/valid.

    I have already found issue #26046 but there is not any solution on how to export private keys for my own bitcoin address.

  7. faca5 commented at 8:05 am on May 18, 2023: none
    On Bitcoin Core version v0.14.2 works without problem.
  8. GregTonoski commented at 8:16 am on May 18, 2023: none

    I have already found issue #26046 but there is not any solution on how to export private keys for my own bitcoin address.

    Does the RPC listdescriptors true instead of dumpprivkey gives you the information, perhaps?

  9. faca5 commented at 8:22 am on May 18, 2023: none
    Yes. It show list of descriptors. How can i use?
  10. GregTonoski commented at 8:28 am on May 18, 2023: none
    You will find the information about how to use the command at https://bitcoin.stackexchange.com/ and https://github.com/bitcoin/bitcoin/blob/master/doc/descriptors.md It is not simple enough to summarize in a sentence or two here.
  11. faca5 commented at 8:31 am on May 18, 2023: none
    Thank you.
  12. faca5 closed this on May 18, 2023

  13. bitcoin locked this on May 17, 2024

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: 2024-12-30 15:12 UTC

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