Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: jdeepee on October 01, 2015, 08:50:18 PM



Title: Python script to send BTC to any given address.
Post by: jdeepee on October 01, 2015, 08:50:18 PM
Hi guys. I am messing around in Python to send some coins to any given bitcoin address. I would like to propagate and push a Bitcoin transaction to the network within the same script. I would prefer to send the coins from a local wallet, unless there is an API out there such as this: https://www.bitgo.com/api/?javascript#send-coins-to-multiple-addresses ,but for Python. Does anyone have any suggestions as to where to look? Sorry for any stupidity I am new to this side of this kind of stuff ;)


Cheers!



Title: Re: Python script to send BTC to any given address.
Post by: achow101 on October 01, 2015, 09:07:58 PM
You can use the Bitcoin Core RPC-API. Just have your python script send several HTTP Post requests to the local Bitcoin daemon and you can do everything through that.


Title: Re: Python script to send BTC to any given address.
Post by: jdeepee on October 01, 2015, 09:38:57 PM
Sorry forgot to mention ideally it would be a multi-sig wallet so bitcoin core wont work for what I want to do right?


Title: Re: Python script to send BTC to any given address.
Post by: achow101 on October 01, 2015, 09:48:03 PM
Sorry forgot to mention ideally it would be a multi-sig wallet so bitcoin core wont work for what I want to do right?
It will. Bitcoin Core has the capability to do multisig through the RPC daemon, not the GUI.


Title: Re: Python script to send BTC to any given address.
Post by: chanz on October 04, 2015, 09:03:38 AM
Sorry forgot to mention ideally it would be a multi-sig wallet so bitcoin core wont work for what I want to do right?

Bitcoin core will work flawlessly for Multi-Signature Addresses. (https://pypi.python.org/pypi/pyspv/0.0.1)