Bitcoin Forum
June 25, 2024, 02:26:58 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Automatic payment script for client.  (Read 1281 times)
FUKT (OP)
Sr. Member
****
Offline Offline

Activity: 446
Merit: 250



View Profile
April 07, 2014, 06:24:19 AM
 #1

Hi, looking for some advice on setting up automatic payments to multiple addresses once per day.

Each address would count as a percentage and the total funds in wallet at end of day would be sent.

Any ideas?
tom14cat14
Hero Member
*****
Offline Offline

Activity: 826
Merit: 500


View Profile
September 20, 2014, 05:57:29 AM
 #2

Hi, looking for some advice on setting up automatic payments to multiple addresses once per day.

Each address would count as a percentage and the total funds in wallet at end of day would be sent.

Any ideas?

Did you find out any info for this?
johnnyrocket
Full Member
***
Offline Offline

Activity: 123
Merit: 104


View Profile
September 22, 2014, 09:18:07 AM
 #3

Hi, looking for some advice on setting up automatic payments to multiple addresses once per day.

Each address would count as a percentage and the total funds in wallet at end of day would be sent.

Any ideas?

Setup a server, run a commandline wallet client (daemon). It is easy to interact with the wallet via either the commandline interface or RPC calls, using any number of programming languages.
KIRAZ
Sr. Member
****
Offline Offline

Activity: 392
Merit: 250


View Profile
September 22, 2014, 09:24:53 AM
 #4

You have to setup a headless bitcoind server if you on windows.
Check this guide there's a video embedded there watch it that might give you some idea.
Sanquin
Newbie
*
Offline Offline

Activity: 35
Merit: 0


View Profile
September 23, 2014, 12:08:36 AM
Last edit: September 25, 2014, 05:08:29 PM by Sanquin
 #5

I think something like this should work.

I cant test it though as I have no bitcoind setup with funds.

But it should work like

Quote
python SendBTC.py <BTCADDRESS> <BTCADDRESS> <BTCADDRESS> <BTCADDRESS> <BTCADDRESS> <BTCADDRESS> ...

SendBTC.py - Python 2.7, You will need to install https://github.com/jgarzik/python-bitcoinrpc
Code:
from bitcoinrpc.authproxy import AuthServiceProxy
import argparse

parser = argparse.ArgumentParser(description='Send Multiple BTC Payments.')
parser.add_argument('BTCAddresses', metavar='N', nargs='+',
                   help='BTC Addresses')

args = parser.parse_args()
print " "

bitcoin = AuthServiceProxy("http://username:pass@127.0.0.1:8332")

arglength = len(args.BTCAddresses)
print "You have supplied", arglength, "BTC Addresses"

amount_of_btc = bitcoin.getbalance()
print "You have", "{:.8f}".format(float(amount_of_btc)), "BTC in your wallet"

send_to_each = float("{0:.8f}".format(amount_of_btc)) / arglength

print "Thats", float("{0:.8f}".format(send_to_each)), "BTC to be sent to each address"
print " "

for address in args.BTCAddresses:
        bitcoin.sendtoaddress(address, send_to_each)
        print send_to_each, "BTC sent to", address


Just add this to a crontab to run at a certain time and your done Smiley

Hope this helps. Feel free to donate to my house buying fund - 15wHuCKGCsRs7D3WSQEs1H7V9NVxwa8JrL Smiley
bitgrimster
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
September 23, 2014, 03:51:07 AM
 #6

Hi,

You can able to do this through cronjob function and a php code, it is easy way to do. Just see bitcoin for developers section.
MangoJ
Full Member
***
Offline Offline

Activity: 222
Merit: 100


BTCRaven.com Escrow & Advertising


View Profile WWW
September 23, 2014, 07:56:16 PM
 #7

Hi, looking for some advice on setting up automatic payments to multiple addresses once per day.

Each address would count as a percentage and the total funds in wallet at end of day would be sent.

Any ideas?

Would you be interested in having someone build this for you?
I would add this function to my existing escrow service.

Automated Escrow  For instant BTC transactions without waiting for a 3rd party.  http://BTCRaven.com
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!