Bitcoin Forum

Other => Beginners & Help => Topic started by: Demogorgonz on June 05, 2013, 06:40:50 PM



Title: 1 wallet with "cron" job to split earnings to 2 wallets in time period(2 days) ?
Post by: Demogorgonz on June 05, 2013, 06:40:50 PM
Is it possible? To have 1 wallet which will split earnings to 2 bitcoin addresses after for example 2 days ? ???

Looking forward to your answers !

Best regards,
Demo


Title: Re: 1 wallet with "cron" job to split earnings to 2 wallets in time period(2 days) ?
Post by: DannyHamilton on June 05, 2013, 07:49:09 PM
Is it possible? To have 1 wallet which will split earnings to 2 bitcoin addresses after for example 2 days ? ???

Looking forward to your answers !

Best regards,
Demo

It depends on the wallet you are using.  If you are using Bitcoin-Qt (or bitcoind), you could write a script that would create a raw transaction to combine all the unspent inputs received in the past two days and split them between 2 addresses.  Then you could schedule the execution of the script in a cron job.  It wouldn't be a very difficult script to write at all.


Title: Re: 1 wallet with "cron" job to split earnings to 2 wallets in time period(2 days) ?
Post by: Demogorgonz on June 06, 2013, 03:40:07 PM
Thank you for your answer,i was thinking of some web service which could be hosted remotely,something like web wallet.. Can you suggest me something like that :) ?

Best regards.


Title: Re: 1 wallet with "cron" job to split earnings to 2 wallets in time period(2 days) ?
Post by: Eva Braun on June 06, 2013, 03:45:31 PM
Danny knows everything.. seriously he can help anyone with any problem with bitcoins.


Title: Re: 1 wallet with "cron" job to split earnings to 2 wallets in time period(2 days) ?
Post by: DannyHamilton on June 06, 2013, 03:51:03 PM
Danny knows everything.. seriously he can help anyone with any problem with bitcoins.

LOL, Where did you get an idea like that?


Title: Re: 1 wallet with "cron" job to split earnings to 2 wallets in time period(2 days) ?
Post by: Eva Braun on June 06, 2013, 03:52:19 PM
Danny knows everything.. seriously he can help anyone with any problem with bitcoins.

LOL, Where did you get an idea like that?

The fact that I always see you give great long answers to a ton of problems  ;D


Title: Re: 1 wallet with "cron" job to split earnings to 2 wallets in time period(2 days) ?
Post by: Lohoris on June 06, 2013, 03:52:26 PM
Is it possible? To have 1 wallet which will split earnings to 2 bitcoin addresses after for example 2 days ? ???

Looking forward to your answers !

Best regards,
Demo
Bear in mind that it might be useful to know why you need to do such a thing.


Title: Re: 1 wallet with "cron" job to split earnings to 2 wallets in time period(2 days) ?
Post by: dbuthay on June 06, 2013, 03:54:19 PM
Is it possible? To have 1 wallet which will split earnings to 2 bitcoin addresses after for example 2 days ? ???

Looking forward to your answers !

Best regards,
Demo

What would be the motivation for doing that?

Something like getting dividends from your investments on an wallet that gets split between to your exchange wallet and a cold wallet?


Title: Re: 1 wallet with "cron" job to split earnings to 2 wallets in time period(2 days) ?
Post by: Eva Braun on June 06, 2013, 03:58:22 PM
Is it possible? To have 1 wallet which will split earnings to 2 bitcoin addresses after for example 2 days ? ???

Looking forward to your answers !

Best regards,
Demo

What would be the motivation for doing that?

Something like getting dividends from your investments on an wallet that gets split between to your exchange wallet and a cold wallet?


This is what I was thinking


Title: Re: 1 wallet with "cron" job to split earnings to 2 wallets in time period(2 days) ?
Post by: Demogorgonz on June 06, 2013, 04:13:36 PM
Is it possible? To have 1 wallet which will split earnings to 2 bitcoin addresses after for example 2 days ? ???

Looking forward to your answers !

Best regards,
Demo
Bear in mind that it might be useful to know why you need to do such a thing.



Friend and I want to team up and to mine together on different pools and to split earnings 50%-50% due to "rejects,stales" and variables like that :). it is better insurance for each of us that we will be making profit even if 1 hardware fails or similar ..


Title: Re: 1 wallet with "cron" job to split earnings to 2 wallets in time period(2 days) ?
Post by: Alexander The Great on June 06, 2013, 04:25:56 PM
This is a cool idea


Title: Re: 1 wallet with "cron" job to split earnings to 2 wallets in time period(2 days) ?
Post by: Lohoris on June 07, 2013, 05:01:07 PM
Sounds good to me too.

You could easily offer a small reward, it shouldn't take much to code such a script.

I guess you could either pay a little bit but have no guarantee it will work, or pay much more but have it throughly tested.


Title: Re: 1 wallet with "cron" job to split earnings to 2 wallets in time period(2 days) ?
Post by: Alexander The Great on June 07, 2013, 05:52:09 PM
this is cool


Title: Re: 1 wallet with "cron" job to split earnings to 2 wallets in time period(2 days) ?
Post by: thestringpuller on June 07, 2013, 11:14:45 PM
Run bitcoind locally and have a crontab that executes a shell script that runs a command like:

./bitcoind -rpcuser=user -rpcpassword=password sendtoaddress <address> <amount>

You'll have to somehow pass in the address and the amount.

As well if you use wallet encryption (which you should just for added safety), you'll need to unlock the wallet first with walletpassphrase <timeout> (the wallet automatically locks itself).


Title: Re: 1 wallet with "cron" job to split earnings to 2 wallets in time period(2 days) ?
Post by: Demogorgonz on June 08, 2013, 04:21:31 PM
Run bitcoind locally and have a crontab that executes a shell script that runs a command like:

./bitcoind -rpcuser=user -rpcpassword=password sendtoaddress <address> <amount>

You'll have to somehow pass in the address and the amount.

As well if you use wallet encryption (which you should just for added safety), you'll need to unlock the wallet first with walletpassphrase <timeout> (the wallet automatically locks itself).

That is nice idea thestringpuller,
however i wanted something hosted on web,some kind of online wallet which could do this..

But,thank you for your reply :)


Title: Re: 1 wallet with "cron" job to split earnings to 2 wallets in time period(2 days) ?
Post by: Eva Braun on June 08, 2013, 04:22:50 PM
Cool thank you