hey there
I'm trying to send a transaction with python, but I'm stuck on signing the raw transaction.
Can anyone recommend a python library that I should check out?
signing transactions using python
4 replies 444 views
stack_2017Senior Member
Posts: 201 · Reputation: 1389
#2May 15, 2024, 07:18 AM
Bit[1] should do exactly what you're looking for. I have looked for other alternatives before, but I think Bit serve the purpose perfectly.
You can see the documentation here[2]. If you find that the documentation is a bit unclear, you can always use Chatgpt for some help.
[1] https://github.com/ofek/bit
[2] https://ofek.dev/bit/guide/transactions.html
Please be more specific. If it's something you need to do one, have you tried using one of Bitcoin wallet software instead? What kind of transaction you need to sign? What kind of address (e.g. P2PKH and P2WPKH) used as input of the TX?
Please stop suggesting that, without mentioning to double-check the result. It could be a way to lose access to your Bitcoin.
king_tokenFull Member
Posts: 26 · Reputation: 293
#4May 17, 2024, 10:27 AM
BitcoinLib may be a good choice. Plenty of examples out there are capable to help you get the hang of it.
Here is the link: https://github.com/1200wd/bitcoinlib
I once made a tutorial, Create transactions in Python, but everything is presented in Bahasa Indonesia. But at least you can find out the modules and libraries that I use to make Bitcoin transactions, and you can also find what kind of script I use to sign the transaction.
https://bitcointalk.org/index.php?topic=5484019.msg63657542#msg63657542
?Reply
Sign in to reply to this topic
Related topics
- Using the Hydranet Dex: A Quick Guide 2
- Understanding Input Size and Change in Transactions 3
- Signing P2WSH PSBT with sats-connect: Need Help 0
- How to retrieve a "dumb script" native P2WPKH? (Nested P2SH-P2WPKH worked fine) 8
- Checking multiple Bitcoin addresses made easy 14
- Trading lessons for beginners 19