Bitcoin Forum
June 25, 2024, 07:45:47 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: BitcoinD -- Hooking into incoming connections?  (Read 2741 times)
Automatic (OP)
Full Member
***
Offline Offline

Activity: 238
Merit: 105


View Profile
December 05, 2013, 10:55:42 AM
Last edit: December 05, 2013, 11:15:32 AM by Automatic
 #1

Hi, I'm developing a very small (private, which, defeats the purpose) bitcoin tumbler as my first bitcoin related project, just to see what bitcoin development entails (Using bitcoind, no fancy recoding of the entire network interface), and, I'm having a small issue.

I have my program generate a new address everytime anyone goes to the 'deposit' link, and, I have a unique wallet per user (Based on their BTC address), so, all is dandy. Now, my only issue is, when a user sends me the payment the only method I can seem to think of that checks for payments is going through ALL my addresses on ALL my wallets and checking their balance, which, is a huge pain in the ass (And, what I'd consider, a waste of processing power).

Is there anyway to hook incoming payments to my (I.E. Addresses in all my wallets) addresses with the bitcoin daemon? Even if it doesn't tell me which address, just 'a' address, it'd be a whole lot better than having a while loop checking every five seconds.

Thanks,
Automatic.

Please ask for a signed message from my on-site Bitcoin address (Check my profile) before doing any offsite trades with me.
caffeinewriter
Hero Member
*****
Offline Offline

Activity: 532
Merit: 500



View Profile
December 05, 2013, 11:19:46 AM
 #2

I don't know if I can answer your question directly, but I can point you towards a StackOverflow which can point you in the right direction. Too tired to read documentation right now.

http://bitcoin.stackexchange.com/questions/6132/how-to-know-when-a-payment-has-been-received-by-bitcoind

Automatic (OP)
Full Member
***
Offline Offline

Activity: 238
Merit: 105


View Profile
December 05, 2013, 11:24:15 AM
 #3

I don't know if I can answer your question directly, but I can point you towards a StackOverflow which can point you in the right direction. Too tired to read documentation right now.

http://bitcoin.stackexchange.com/questions/6132/how-to-know-when-a-payment-has-been-received-by-bitcoind

Fair enough, so the only way is to call a program which then notifies my program that it's got a payment? No internal method?

That's a shame, oh well, I guess it'll have to do. Thanks.

Please ask for a signed message from my on-site Bitcoin address (Check my profile) before doing any offsite trades with me.
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!