Bitcoin Forum

Bitcoin => Bitcoin Discussion => Topic started by: Anonymous on July 16, 2010, 01:28:24 PM



Title: Bitcoin subscriptions
Post by: Anonymous on July 16, 2010, 01:28:24 PM
Is there a way to implement subscription payments using bitcoin?

Say you would like to donate once a month to your favourite charity or content provider such as a podcast without having to remember to manually process the payment?

One less reason to use a credit card!


Title: Re: Bitcoin subscriptions
Post by: Gavin Andresen on July 16, 2010, 01:41:04 PM
Unix and Mac and Windows all have ways of scheduling recurring tasks (Linux: crontab, Mac: crontab, or I think iCal can do it, Windows... I dunno).

So if you're a little bit geeky, you could arrange for "bitcoin sendtoaddress 1mJMYFAVORITECHARITY9R4 amount" to get run once a month.  (just run bitcoin with the -server flag).


Title: Re: Bitcoin subscriptions
Post by: Strofcon on July 16, 2010, 02:10:53 PM
I haven't had much luck finding all the options that can be passed to bitcoin/bitcoind when it's run... -connect, -addnode, and -server are the ones I've seen so far. Are there others?
What exactly does -server do? Also, it seems that -connect and -addnode have pretty similar functionality... My best guess is that -connect is to force only one explicit connection to be made, whereas -addnode just says "make all the connections you want, but by golly you better connect to <IP>, if nothing else." Is that at least close to right? :)


Title: Re: Bitcoin subscriptions
Post by: theymos on July 16, 2010, 06:44:35 PM
Try "bitcoin -?" for a list.


Title: Re: Bitcoin subscriptions
Post by: EricJ2190 on July 16, 2010, 06:51:43 PM
Windows... I dunno

Windows has Task Scheduler, or you can use of one various cron clones.


Title: Re: Bitcoin subscriptions
Post by: jgarzik on July 22, 2010, 06:43:03 AM
IMO, the bitcoin client should have a subscription manager.


Title: Re: Bitcoin subscriptions
Post by: lachesis on July 23, 2010, 01:18:35 AM
-1 for now.

I think keeping the vanilla client as plain as possible is a good thing. These things can easily be implemented in other clients, but the one on this site should serve as a sort of "reference". We should also focus on the JSON-RPC API so that other clients can interface with this one instead of having to modify it.


Title: Re: Bitcoin subscriptions
Post by: nenolod on July 23, 2010, 05:00:35 AM
IMO, the bitcoin client should have a subscription manager.


i've never used the ui client, but if the linux client exposed itself via dbus, you could write your own subscription manager.

alternatively, put this in your crontab:

0 0 0 0 */1 bitcoin -server sendtoaddress whatever amount-in-btc

this will invoke bitcoin from the commandline and send the money.


Title: Re: Bitcoin subscriptions
Post by: jgarzik on July 23, 2010, 05:25:24 AM
i've never used the ui client, but if the linux client exposed itself via dbus, you could write your own subscription manager.

alternatively, put this in your crontab:

0 0 0 0 */1 bitcoin -server sendtoaddress whatever amount-in-btc

Sure, I can do this.  But the supposition and suggestion were more general.

If bitcoins are to be successful, there needs to be a subscription system accessible to Aunt Tillie.


Title: Re: Bitcoin subscriptions
Post by: lachesis on July 26, 2010, 02:43:50 AM
If bitcoins are to be successful, there needs to be a subscription system accessible to Aunt Tillie.
This belongs outside the main client. There's no reason you can't write a trivial system in Python or something, but there's also no reason to clutter up my Bitcoin client with that.

I wonder if there's any viable way to make a simple extension system for Bitcoin? It seems like it would be a lot of work...