<p>i had tried many methods but nothing help me
<img src="https://i.imgur.com/8wVemR5.png" alt="Text" />,
by using <code>bitcoind -deprecatedrpc=create_bdb</code>
<img src="https://i.imgur.com/mN7uX13.png" alt="Text" />
i think i had installed the Berkeley DB
please help me to solve the problem</p>

CC BY-SA 4.0
2024-02-14T11:29:26.933Z
Do you need to create a wallet using Berkeley DB? Why not install sqlite3 as a dependency, build Bitcoin Core again and use the DB that the non-legacy wallet supports? Assuming you don't have any mainnet funds in a legacy Berkeley DB wallet that is.
Michael Folkson
CC BY-SA 4.0
2024-02-14T11:36:08.867Z
but the legacy wallet can be created by using only the bdb , i need the legacy wallet to find the private key in the regtest
N.dhanush raj
CC BY-SA 4.0
2024-02-14T11:43:27.027Z
You are creating a new wallet? Regtest is supported in the non-legacy sqlite3 wallet.
Michael Folkson
CC BY-SA 4.0
2024-02-14T11:54:17.573Z
is there is a way to find the private key for the newly created wallet
N.dhanush raj
CC BY-SA 4.0
2024-02-14T12:10:11.127Z
dumpprivkey doesn't work for non-legacy but there is an alternative to using dumpprivkey https://bitcoin.stackexchange.com/questions/113834/why-can-i-not-dump-private-keys-from-a-descriptor-wallet
Michael Folkson
CC BY-SA 4.0
2024-02-14T13:24:22.813Z
still i don't get the private key !!
N.dhanush raj
CC BY-SA 4.0
2024-02-14T14:06:36.297Z
"You can get the master private keys by using listdescriptors true. This will output all of the descriptors stored in the wallet along with their corresponding private keys." If you aren't sure what the private key is here post a different question
Michael Folkson
CC BY-SA 4.0
2024-02-15T05:21:13.977Z
if i use listdescriptors true i only get pkh,sh,tr,wpkh
N.dhanush raj
CC BY-SA 4.0
2024-02-21T13:38:14.507Z
What is the actual problem you are trying to solve that you are trying to the get the private key for?
Murch
<bitcoin-core><wallet><database>
how to get the private key in Bitcoin Core 26.0.0 and how to create a legacy wallet
N.dhanush raj
# how to get the private key in Bitcoin Core 26.0.0 and how to create a legacy wallet

(Asked by: username_0 on 2024-02-14)

i had tried many methods but nothing help me
![Text](https://i.imgur.com/8wVemR5.png),
by using `bitcoind -deprecatedrpc=create_bdb`
![Text](https://i.imgur.com/mN7uX13.png)
i think i had installed the Berkeley DB
please help me to solve the problem

**Tags:** bitcoin-core, wallet, database

> **Comments:**
> **username_1**: Do you need to create a wallet using Berkeley DB? Why not install sqlite3 as a dependency, build Bitcoin Core again and use the DB that the non-legacy wallet supports? Assuming you don't have any mainnet funds in a legacy Berkeley DB wallet that is.  
> **username_0**: but the legacy wallet can be created by using only the bdb , i need the legacy wallet to find the private key in the regtest  
> **username_1**: You are creating a new wallet? Regtest is supported in the non-legacy sqlite3 wallet.  
> **username_0**: is there is a way to find the private key for the newly created wallet  
> **username_1**: dumpprivkey doesn't work for non-legacy but there is an alternative to using dumpprivkey https://bitcoin.stackexchange.com/questions/113834/why-can-i-not-dump-private-keys-from-a-descriptor-wallet  
> **username_0**: still i don't get the private key !!  
> **username_1**: "You can get the master private keys by using listdescriptors true. This will output all of the descriptors stored in the wallet along with their corresponding private keys." If you aren't sure what the private key is here post a different question  
> **username_0**: if i use listdescriptors true i only get pkh,sh,tr,wpkh  
> **username_2**: What is the actual problem you are trying to solve that you are trying to the get the private key for?  

---

## 0 answers

