7

I just added sendtoaddress to bitcoin.rpc.Proxy: from bitcoin.core import COIN, b2lx import bitcoin.wallet import bitcoin.rpc try: # This moved between versions from bitcoin.base58 import CBitcoinAddress except: from bitcoin.wallet import CBitcoinAddress rpc = bitcoin.rpc.Proxy() addr = CBitcoinAddress('1JwSSubhmg6iPtRjtyqhUYYH7bZg3Lfy1T') ...


3

There is pybitcointools, which allows you to do just that using the sign(tx, index, priv) function. There are others but I at least found this one the easiest to work with. EDIT: You have many inputs I can see..the following could help def signAllIns(aTx, priv, nbIns=None): signedTx = aTx utxo = nbIns if utxo == None: utxo = len(...


3

Code sample from 04/2014 is out of date with current python-bitcoinlib. Slight modification here: from bitcoin.core import COIN, b2lx import bitcoin.wallet import bitcoin.rpc rpc = bitcoin.rpc.Proxy() addr = bitcoin.wallet.CBitcoinAddress('1JwSSubhmg6iPtRjtyqhUYYH7bZg3Lfy1T') txid = rpc.sendtoaddress(addr, 0.001 * COIN) print(b2lx(txid)) Tested on v0.3.0+...


1

script.py of the Bitcoin Core functional test framework contains a comment that it was initially modified from python-bitcoinlib. There doesn't appear to have been any code sharing beyond that and certainly not any later changes pushed up/downstream. I asked Kanzure (previous maintainer of python-bitcoinlib) on IRC about it and he said: python-bitcoinlib is ...


Only top voted, non community-wiki answers of a minimum length are eligible