# How do I locally sign a transaction with a private key?

**URL:** <https://radixtalk.com/t/how-do-i-locally-sign-a-transaction-with-a-private-key/157>\
**Category:** Developers\
**Tags:** howto, python, api\
**Created:** [29 December 2021 13:50 UTC](https://radixtalk.com/t/how-do-i-locally-sign-a-transaction-with-a-private-key/157 "2021-12-29T13:50:54Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Faraz](https://radixtalk.com/user_avatar/radixtalk.com/faraz/32/334_2.png) [@Faraz](https://radixtalk.com/u/Faraz)\
**Post date:** [6 April 2022 17:09 UTC](https://radixtalk.com/t/how-do-i-locally-sign-a-transaction-with-a-private-key/157/5 "2022-04-06T17:09:21Z")

</div>

Hi Peachy, I had the exact same problem and couldn’t figure it out so just created a development wallet using Stuart’s script here: [Development Wallet Creation](https://radixtalk.com/t/how-to-create-a-radix-wallet-for-development-purposes/61)

This will allow you to create the necessary hex encoded keys to play around with txs using the API.

I believe 0xOmar in Discord has also created a python library that can extract the private key from the desktop wallet seed, so you could look into that if you want to use the desktop wallet created address.

---

_[View the full topic](https://radixtalk.com/t/how-do-i-locally-sign-a-transaction-with-a-private-key/157)._
