Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: reasen on February 09, 2014, 08:52:57 AM



Title: Some API for get bitcoin and send automatically?
Post by: reasen on February 09, 2014, 08:52:57 AM
Yep, i searching some method for do one automatic thing, when some people send one payment in the address this send some bitcoins to the same address in x time, is it possible? Thanks.


Title: Re: Some API for get bitcoin and send automatically?
Post by: Automatic on February 10, 2014, 05:22:09 AM
%s is parsed from walletnotify.
Code:
sleep 5;
$amount = parseJsonAndGetAmount(bitcoind gettransaction %s);
bitcoind sendtoaddress $address $amount;

You get the point.


Title: Re: Some API for get bitcoin and send automatically?
Post by: reasen on February 10, 2014, 07:16:17 PM
thanks for pseucode is all i need.