Questions tagged [python-bitcoinlib]
The python-bitcoinlib tag has no usage guidance.
13
questions
0
votes
0
answers
16
views
Create transaction without importing wallet using python bitcoinlib
I am trying to find a way to send bitcoins from one address to another, having only private key, without importing any wallets, just simply get txins, create a transaction and send it to some address.
...
0
votes
1
answer
36
views
p2sh addresses in elements
I'm building a script and have it's hex representation, then I convert it to a pubkey and address, which results in something like: 3NqNAUBEWarVjKerLcCnPrTGbaQ4QFcAfr or ...
1
vote
1
answer
274
views
Invalid transaction. Error: TX decode failed. Make sure the tx has at least one input
I'm using bitcoinlib for python to create a transaction and send it but I'm getting the following error:
Funds not sent, exception error: Error connecting to blockchair on url
https://api.blockchair....
0
votes
0
answers
45
views
Creating an OP_Return TX with Python bitcoinlib
How can I create an op_return TX with python bitcoinlib?
The transaction should include the OP_RETURN HEX-Data and an address where I send my change money
0
votes
1
answer
185
views
python - No module named 'bitcoin' on Ubuntu using WSL on Windows 10
Which version of python should I use?
When running pip3 install python-bitcoinlib I get 'Requirement already satisfied'.
I run on Ubuntu using WSL in Windows 10.
I have this error:
>>> from ...
0
votes
0
answers
31
views
how to get every inputs signature from a raw hex bitcoin transaction using python? [duplicate]
I have this raw transaction :
...
2
votes
1
answer
109
views
Problem spending funds from P2WSH address: non-mandatory-script-verify-flag
I've tried to find an answer here and on BTT but without luck so far.
I'm having issues creating a transaction to spend from a P2WSH address which I created and sent funds to.
I based my code off of ...
0
votes
1
answer
48
views
Does python-bitcoinlib and the Bitcoin Core functional test framework share code? Were changes ever pushed down/upstream?
Does python-bitcoinlib and the Bitcoin Core functional test framework share code? Were changes ever pushed down/upstream?
1
vote
2
answers
326
views
Why do I have a socket.timeout with python-bitcoinlib?
I am using a small script and get a timeout from python. This is my script:
import bitcoin
import bitcoin.rpc
from bitcoin.rpc import RawProxy
p = RawProxy()
hash = '...
7
votes
2
answers
5k
views
python-bitcoinlib | Create Private Keys, Public Keys and Addresses - How to Do It?
I'm trying to use the python-bitcoinlib library but its docs aren't entirely clear to me.
I'm a programmer but quite new to Python, and not very versed in the Bitcoin protocol.
What's the process, ...
2
votes
1
answer
1k
views
How can I sign transaction hex with Python library
I have a unsigned transaction hex. Now I want to sign this transaction input with my private key in Python. Are there any Python libraries?
Transaction Hex
...
0
votes
1
answer
601
views
How to getreceivedbyaddress() with the python-bitcoinlib?
I'm trying to use the python-bitcoinlib in my bitcoin project. I now understand how I can send a payment, but I can't find anything similar to the getreceivedbyaddress() command I normally used.
Isn'...
5
votes
2
answers
6k
views
How to make a simple payment with the python-bitcoinlib?
I've been using the bitcoin-python library for making payments from within Python. This worked pretty simple:
>>> import bitcoinrpc
>>> conn = bitcoinrpc.connect_to_local()
>>&...