Questions tagged [python-bitcoinlib]

The tag has no usage guidance.

10 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
1 answer
1k views

What is the required input for python-bitcoinlib getrawtransaction command?

I am running a bitcoin node on my machine, fully synced with RPC commands enabled, rpc server live and txindex=1. In the command-line I can run the following RPC call and obtain the information ...
Oonah's user avatar
  • 95
1 vote
1 answer
110 views

Error Validating Segwit Transactions using Python Blockcypher API: Error Running Input Script

As the title states, I'm trying to send a Litecoin transaction using the Blockcypher API Python SDK, and using Bitcoinlib for key management. I have extensively reviewed the documentation and source ...
Cursed's user avatar
  • 11
1 vote
0 answers
85 views

How to set change address with python bitcoinlib

I am using python's bitcoinlib to try and set up payments where a client sends funds to a server and then sends requests signed with their key as proof that the request came from them. The server ...
Colm Evans's user avatar
1 vote
0 answers
135 views

Bitcoin Transaction Builder in Python

is there a python code that helps build raw bitcoin transactions (Legacy and Segwit)? I have seen javascript but not in python.
Jim Quick's user avatar
1 vote
0 answers
87 views

Cannot import python-bitcoinlib into a simple script

Im writing a simple python script to connect to a local bitcoin node and list transactions. I created a virtual environment with: virtualenv bitcoinenv And then activated: source bitcoinenv/bin/...
Mark's user avatar
  • 137
1 vote
0 answers
67 views

BlockCypher API signature bitcoin transaction Error

I'm trying to make a bitcoin transaction using the BlockCypher API and I'm getting an error when I try to sign the transaction. This function creates an unsigned transaction: def buildTransaction(...
Salvador's user avatar
0 votes
0 answers
63 views

How to get unspents using the private key of the bip84 wallet

Maybe my question is stupid, but I really can't figure out why when I use the bip44 private key, it works, but if it's bip84, it doesn't from bit import PrivateKey, Key import bitcoinlib my_key = ...
dropless's user avatar
0 votes
0 answers
132 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
Captain Evening's user avatar
0 votes
1 answer
481 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 ...
Rony Tesler's user avatar
0 votes
1 answer
322 views

How to create SegWit address from mnemonic in Python 3.8.10

I am having trouble creating SegWit address from mnemonic. I can't find any useful code to do that. I tried using BitcoinLib but I don't know how to disable saving wallets to disk. EDIT: I found ...
cloudzik's user avatar