user75551: 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?

user5406: It's currently not possible to export private keys from descriptor wallets.
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.

75551: <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>
 5406: <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>
