Bitcoin Forum
September 27, 2018, 10:38:49 PM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Is a programmable client possible?  (Read 523 times)
Bungeebones
Full Member
***
Offline Offline

Activity: 180
Merit: 100



View Profile
April 22, 2014, 09:35:55 PM
 #1

Does anyone know if it would be feasible to make a programmable client that would take any input and send the output to a series of other clients?

For example, a payment of 1 BTC comes in and it sends:

.5 BTC to one client
.25 BTC to another client
.125 BTC to yet another
.0625 BTC to another

... and so forth.

And a related question. Would it be possible to to program a client to send outputs using a chron?


The way I would use the two would be to have the chron send a daily spend to the second which then would take that amount and divide it up to the other clients.

1538087929
Hero Member
*
Offline Offline

Posts: 1538087929

View Profile Personal Message (Offline)

Ignore
1538087929
Reply with quote  #2

1538087929
Report to moderator
Make a difference with your Ether.
Donate Ether for the greater good.
SPRING.WETRUST.IO
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1538087929
Hero Member
*
Offline Offline

Posts: 1538087929

View Profile Personal Message (Offline)

Ignore
1538087929
Reply with quote  #2

1538087929
Report to moderator
1538087929
Hero Member
*
Offline Offline

Posts: 1538087929

View Profile Personal Message (Offline)

Ignore
1538087929
Reply with quote  #2

1538087929
Report to moderator
mcaizgk2
Member
**
Offline Offline

Activity: 66
Merit: 10


View Profile
April 22, 2014, 09:47:12 PM
 #2

Absolutely. All necessary functionality is exposed through bitcoind's JSON-RPC API so all you really have to do is to find an appropriate wrapper for the programming language you wish to build your client with and build it. You can then call your client with chron.

These will help you get the ball rolling: JSON-RPC API reference and Original Bitcoin client/API calls list
mailmansDOG
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
April 22, 2014, 09:50:43 PM
 #3

Things get advanced quickly. As the post above mine sais, you need to know programming. If you do then I wish you good luck. Oh and aslo, there might be some open source projects for what you're looking to make. Try looking it up on github.

cp1
Hero Member
*****
Offline Offline

Activity: 616
Merit: 500


Stop using branwallets


View Profile
April 22, 2014, 09:53:26 PM
 #4

Should be easy, just query bitcoind if a certain transaction has taken place and then send to whatever addresses you want.  Easy enough for a few lines and just add the script to your crontab.

Guide to armory offline install on USB key:  https://bitcointalk.org/index.php?topic=241730.0
Bungeebones
Full Member
***
Offline Offline

Activity: 180
Merit: 100



View Profile
April 23, 2014, 12:49:51 AM
 #5

Awesome responses! I was playing with bitcoind last month and had to set it aside for a bit. I'm fair at php and currently have php set up to receive a http callback from bitcoinmonitor.net and then record the transaction in my own records so this would just be along the same lines.


I was trying to do it on my own and without Bitcoinmonitor too. I was "almost there" to where it would pick up a transaction but not quite. I can't quite remember my hangup so I'll have to blow the dust off my notes and get back into it.

Sometimes it's hard to see the forest through the trees :-)

Thanks all!
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!