<p><a href="https://bitcoin.stackexchange.com/a/107956/5406">It's currently not possible to export private keys from descriptor wallets.</a></p>
<p>I don't think you needed to dump the key first in the first place, though. As far as I can tell, <code>signrawtransactionwithwallet</code> should do exactly what you're looking for.</p>

CC BY-SA 4.0
2022-06-15T13:04:49.180Z
2022-06-15T13:04:49.180Z
Murch
<p>I'm upgrading my application from bitcoin core 21.0 to 23.0.</p>
<p>In core 21.0 I created a raw transaction and sign it with my private key after I called <code>dumpprivkey</code> RPC. At core 23.0 I received this error when I Called <code>dumpprivkey</code>:</p>
<p><code>This type of wallet does not support this command</code></p>
<p>How can I sign my transaction with my private key?</p>

<bitcoin-core><signrawtransaction>
Sign raw transaction with key
liorko
# Sign raw transaction with key

(Asked by: username_0 on 2022-06-15)

I'm upgrading my application from bitcoin core 21.0 to 23.0.

In core 21.0 I created a raw transaction and sign it with my private key after I called `dumpprivkey` RPC. At core 23.0 I received this error when I Called `dumpprivkey`:

`This type of wallet does not support this command`

How can I sign my transaction with my private key?

**Tags:** bitcoin-core, signrawtransaction


---

## 1 answers

### Answer by username_1 on 2022-06-15. Score: 2 | Accepted answer

[It's currently not possible to export private keys from descriptor wallets.](https://bitcoin.stackexchange.com/a/107956/5406)

I don't think you needed to dump the key first in the first place, though. As far as I can tell, `signrawtransactionwithwallet` should do exactly what you're looking for.


---

