<p>Descriptors contain more information than just keys. They contain information about the scripts to create. But it's all just plain text, so you should be able to see that there are xprvs contained within the descriptor string.</p>
<p>If you do not see them, you should still see xpubs. In that case, your wallet is a watch only wallet and doesn't have any private keys.</p>
<p>If you don't know what an xprv looks like, then I suggest you reevaluate what it is that you are actually trying to do. Handling private keys by hand can be dangerous and risks any funds associated with them.</p>

CC BY-SA 4.0
2024-02-15T20:40:35.173Z
2024-02-15T20:40:35.173Z
Ava Chow
<p>If I use the <code>listdescriptors true</code> command, I only receive values like (pkh, sh, tr, wpkh). Did I do something wrong?</p>

<wallet><output-script-descriptors><private-key-export>
why i can't get the xprv descriptor from the bitcoin-cli listdescriptors true
N.dhanush raj
# why i can't get the xprv descriptor from the bitcoin-cli listdescriptors true

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

If I use the `listdescriptors true` command, I only receive values like (pkh, sh, tr, wpkh). Did I do something wrong?

**Tags:** wallet, output-script-descriptors, private-key-export


---

## 1 answers

### Answer by username_1 on 2024-02-15. Score: 2 | Accepted answer

Descriptors contain more information than just keys. They contain information about the scripts to create. But it's all just plain text, so you should be able to see that there are xprvs contained within the descriptor string.

If you do not see them, you should still see xpubs. In that case, your wallet is a watch only wallet and doesn't have any private keys.

If you don't know what an xprv looks like, then I suggest you reevaluate what it is that you are actually trying to do. Handling private keys by hand can be dangerous and risks any funds associated with them.


---

