Bitcoin Forum
December 14, 2024, 05:05:50 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Sender  (Read 1506 times)
smeagol (OP)
Legendary
*
Offline Offline

Activity: 1008
Merit: 1005



View Profile
October 27, 2013, 10:42:05 PM
Last edit: October 29, 2013, 10:46:08 AM by smeagol
 #1

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)
doof
Hero Member
*****
Offline Offline

Activity: 765
Merit: 503


View Profile WWW
October 28, 2013, 01:06:57 AM
 #2

Yes, very easy*

*Depending on your coding skills.
doof
Hero Member
*****
Offline Offline

Activity: 765
Merit: 503


View Profile WWW
October 28, 2013, 01:09:45 AM
 #3

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 Smiley
smeagol (OP)
Legendary
*
Offline Offline

Activity: 1008
Merit: 1005



View Profile
October 28, 2013, 10:02:24 PM
 #4

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 Smiley

Double the send half the time, is it possible?
And what is a console app?
doof
Hero Member
*****
Offline Offline

Activity: 765
Merit: 503


View Profile WWW
October 29, 2013, 03:36:46 AM
 #5

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 Smiley

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)
joeyjoe
Full Member
***
Offline Offline

Activity: 224
Merit: 100


View Profile
October 29, 2013, 04:18:53 AM
 #6

PM me if you would like me to create this for you.

Bitcoin PHP programmer for hire! (HTML / CSS / JQuery / AJAX / .NET).
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!