Bitcoin Forum

Bitcoin => Project Development => Topic started by: smeagol on October 27, 2013, 10:42:05 PM



Title: Sender
Post by: smeagol on October 27, 2013, 10:42:05 PM
Is it possible to make a script in which, when someone sends something to your wallet, you can automatically send them something back (maybe 1/2 chance of doubling money)?  (Kind of like SDICE)


Title: Re: Auto Sender?
Post by: doof on October 28, 2013, 01:06:57 AM
Yes, very easy*

*Depending on your coding skills.


Title: Re: Auto Sender?
Post by: doof on October 28, 2013, 01:09:45 AM
A lot easier if you use an online wallet like blockchain.info.

2 Ways:

Poor mans way:
Watch the wallet address in a loop, ever n seconds / minutes.  Query transactions.  Double the send.  You might need to worry about double sending in this case though.  Might need to persist the sent transactions, and verify that you haven't already sent.

Or:
Configure blockchain.info with a IPN.  When received, double and send.  This would require a service / site hosted somewhere, locked down, extra security etc.

I could knock up a console app to do it, with config, for 2btc :)


Title: Re: Auto Sender?
Post by: smeagol on October 28, 2013, 10:02:24 PM
A lot easier if you use an online wallet like blockchain.info.

2 Ways:

Poor mans way:
Watch the wallet address in a loop, ever n seconds / minutes.  Query transactions.  Double the send.  You might need to worry about double sending in this case though.  Might need to persist the sent transactions, and verify that you haven't already sent.

Or:
Configure blockchain.info with a IPN.  When received, double and send.  This would require a service / site hosted somewhere, locked down, extra security etc.

I could knock up a console app to do it, with config, for 2btc :)

Double the send half the time, is it possible?
And what is a console app?


Title: Re: Auto Sender?
Post by: doof on October 29, 2013, 03:36:46 AM
A lot easier if you use an online wallet like blockchain.info.

2 Ways:

Poor mans way:
Watch the wallet address in a loop, ever n seconds / minutes.  Query transactions.  Double the send.  You might need to worry about double sending in this case though.  Might need to persist the sent transactions, and verify that you haven't already sent.

Or:
Configure blockchain.info with a IPN.  When received, double and send.  This would require a service / site hosted somewhere, locked down, extra security etc.

I could knock up a console app to do it, with config, for 2btc :)

Double the send half the time, is it possible?
And what is a console app?

Sorry, what do you mean by "double the send half the time"?

Anything is possible, if you diffine your bussines logic.  By console app, I mean an exe that just runs in command prompt without a GUI.  This is one I wrote to poll Mt Gox.

(Dont know how to upload a screen shot here)


Title: Re: Auto Sender?
Post by: joeyjoe on October 29, 2013, 04:18:53 AM
PM me if you would like me to create this for you.