signing transactions using python

4 replies 444 views
0xHashMember
Posts: 21 · Reputation: 201
#1May 15, 2024, 03:37 AM
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?
3 Reply Quote Share
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
3 Reply Quote Share
hash_bossLegendary
Posts: 1166 · Reputation: 5261
#3May 17, 2024, 06:44 AM
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.
0 Reply Quote Share
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
6 Reply Quote Share
pauldefiMember
Posts: 33 · Reputation: 145
#5May 17, 2024, 01:43 PM
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
3 Reply Quote Share
?Reply
Sign in to reply to this topic

Related topics