Git Product home page Git Product logo

Comments (5)

edilmedeiros avatar edilmedeiros commented on September 26, 2024

Newer versions of bitcoin core use descriptor wallets.

You can see them using:

bitcoin-cli listdescriptors true

The true argument mean to export the private descriptors, the equivalent of private keys.

I usually use the tool jq to extract them to an environment variable like so:

DESCRIPTORS=$(bitcoin-cli listdescriptors true | jq -r .descriptors)

I import the descriptors to my wallet with:

bitcoin-cli importdescriptors "$DESCRIPTORS"

I think you can create a legacy wallet with

bitcoin-cli -named createwallet "my_wallet" descriptors=false

which should work with the dumpprivkey rpc you are trying to use.

from bitcoin.

ygcool avatar ygcool commented on September 26, 2024

@edilmedeiros Hi, I tried and it still doesn't work, which version of bitcoin core still works with dumpprivkey?

from bitcoin.

edilmedeiros avatar edilmedeiros commented on September 26, 2024

V27 works with dumpprivkey.

The problem is that you are creating a newer descriptor wallet and are trying to use an rpc which is compatible with legacy wallets only.

Can you be more specific about what you tried?

from bitcoin.

achow101 avatar achow101 commented on September 26, 2024

As the error message says, your wallet is not compatible with the dumpprivkey command. @edilmedeiros has already laid out your alternatives, but there is no way to make your specific wallet work with dumpprivkey.

from bitcoin.

ygcool avatar ygcool commented on September 26, 2024

thank.
Solved it:

bitcoind -deprecatedrpc=create_bdb -daemon

bitcoin-cli -named createwallet "walletname" descriptors=false

bitcoin-cli getnewaddress

bitcoin-cli dumpprivkey "address"

from bitcoin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.