Bitcoin Forum
May 22, 2024, 06:16:24 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Is a programmable client possible?  (Read 578 times)
Bungeebones (OP)
Full Member
***
Offline Offline

Activity: 178
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.

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

Activity: 178
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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!