Title: bitcoind to react to when transaction is received Post by: ehmdjii on October 11, 2011, 08:53:09 PM hello,
i would like my bitcoind daemon to do something as soon as a transaction is received. basically it should execute a mysql query where i need the amount as well as the address on which it was received. how can i do that? thanks! Title: Re: bitcoind to react to when transaction is received Post by: talpan on October 12, 2011, 12:10:06 AM There is currently no way to do it as you described.
You can a command every x minutes and execute the rpc command "listtransactions". Check the wiki for more information. regards, talpan Title: Re: bitcoind to react to when transaction is received Post by: error on October 12, 2011, 05:40:48 AM Look for blkmond; it's a simple Python script that watches the Bitcoin network and can be customized to run an external program when a transaction is received.
Title: Re: bitcoind to react to when transaction is received Post by: Herbert on October 12, 2011, 08:45:57 AM Look for blkmond; it's a simple Python script that watches the Bitcoin network and can be customized to run an external program when a transaction is received. Is it possible to trigger already with 0 confirmations? Or only with new blocks coming in, so at least 1 confirmation? (Or do i still have a totally wrong understanding of how this works ;D) Title: Re: bitcoind to react to when transaction is received Post by: ama on October 12, 2011, 09:01:31 AM i would like my bitcoind daemon to do something as soon as a transaction is received. basically it should execute a mysql query where i need the amount as well as the address on which it was received. That's a job for cron, isn't it? Title: Re: bitcoind to react to when transaction is received Post by: talpan on October 12, 2011, 01:07:42 PM i would like my bitcoind daemon to do something as soon as a transaction is received. basically it should execute a mysql query where i need the amount as well as the address on which it was received. That's a job for cron, isn't it? Yes, i think so too. Title: Re: bitcoind to react to when transaction is received Post by: error on October 12, 2011, 03:45:35 PM Look for blkmond; it's a simple Python script that watches the Bitcoin network and can be customized to run an external program when a transaction is received. Is it possible to trigger already with 0 confirmations? Or only with new blocks coming in, so at least 1 confirmation? (Or do i still have a totally wrong understanding of how this works ;D) That's what I said. It sees transactions "live" as they come in. Get hacking :) |