Comments (5)
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.
@edilmedeiros Hi, I tried and it still doesn't work, which version of bitcoin core still works with dumpprivkey?
from bitcoin.
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.
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.
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)
- Misleading index error message HOT 2
- .
- .
- CI timeouts HOT 32
- Increasing self-hosted runner raw performance HOT 15
- No ZMQ `sequence` notifications on Regtest HOT 2
- 28.0 RC Testing Guide Feedback HOT 12
- .
- Race condition between ZMQ UpdateTip and getblocktemplate HOT 13
- fuzz: `scriptpubkeyman`: heap-buffer-overflow miniscript.cpp in CScript BuildScript HOT 2
- RPC: Populate a PSBT input with a UTXO not in wallet/mempool/utxo set
- cmake: adjust Find modules to try `find_package` & fallback to `pkg_check_modules`
- ci: failure in feature_assumeutxo.py HOT 2
- cmake: GenerateHeaderFrom very slow HOT 3
- Closing a wallet using the fa46088440 28.x QT client segfaults HOT 8
- No such file or directory: bitcoind Error HOT 9
- Intermittent failure in tool_wallet.py in self.assert_tool_output('', '-wallet=salvage', 'salvage') : assert_equal(p.poll(), 0) ; AssertionError: not(3221226505 == 0)
- .
- translations: `28.x` update pulled in random strings? HOT 3
- Use IPv4-encoded IPv6 address to get IPv4 node address with port number from DNS seeds HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitcoin.