<p>is there a python code that helps build raw bitcoin transactions (Legacy and Segwit)?
I have seen javascript but not in python.</p>

CC BY-SA 4.0
2023-05-16T04:25:13.640Z
Have you tried python-bitcoinlib? https://github.com/petertodd/python-bitcoinlib/blob/master/examples/spend-p2pkh-txout.py
m1xolyd1an
CC BY-SA 4.0
2023-05-16T09:41:19.473Z
hey, thanks! Peter Todd, sounds very familiar...
Jim Quick
<transactions><python><python-bitcoinlib>
Bitcoin Transaction Builder in Python
Jim Quick
# Bitcoin Transaction Builder in Python

(Asked by: username_0 on 2023-05-15)

is there a python code that helps build raw bitcoin transactions (Legacy and Segwit)?
I have seen javascript but not in python.

**Tags:** transactions, python, python-bitcoinlib

> **Comments:**
> **username_1**: Have you tried python-bitcoinlib? https://github.com/petertodd/python-bitcoinlib/blob/master/examples/spend-p2pkh-txout.py  
> **username_0**: hey, thanks! Peter Todd, sounds very familiar...  

---

## 0 answers

