Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: cp1 on February 15, 2014, 04:34:21 PM



Title: How to monitor zero-conf transactions?
Post by: cp1 on February 15, 2014, 04:34:21 PM
How do I monitor incoming transactions as they occur (before they're accumulated into a block)?  Are they in one of the blk.dat files that bitcoind creates, or are there only confirmed blocks in those files?  Does bitciond create a file of pending, unconfirmed transactions?  I can use python or C, or really anything.


Title: Re: How to monitor zero-conf transactions?
Post by: yossarian1 on February 15, 2014, 09:45:08 PM
You need to check the memory pool (bitcoind).  Something like getrawmempool. https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list.  In bitcoinj I think unconfirmed transactions matching the wallet are available from the wallet.


Title: Re: How to monitor zero-conf transactions?
Post by: cp1 on February 16, 2014, 04:46:31 AM
Thanks, that works great.