Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: MrKain on May 31, 2013, 07:51:15 AM



Title: monitor all transactions
Post by: MrKain on May 31, 2013, 07:51:15 AM

 Hi,

 Will calling 'listtransactions '*'' list the last transactions by accounts on my
server -

 Is there a way to view all transactions on the bitcoin network - rather than
just my users ?



Title: Re: monitor all transactions
Post by: QuinnHarris on June 01, 2013, 08:10:33 PM
You can use getrawmempool to get a list of all the transactions in the memory pool which should be everything the node knows about that is not in a block in the current chain.  getrawtransaction will then give you the unparsed transaction data.

If you want to process all new transactions immediately you will probably need something that connects as a peer into the network (a node you trust) to get broadcasted transactions and new blocks.  Clients like Armory do this now.  There might already be some code around to do this depending on the language you are using.

I think bitcoind needs an interface to request transactions and notifications of specified addresses or with specific outputs.  Do you actually need every transaction or just all transactions associated with some set of addresses?


Title: Re: monitor all transactions
Post by: CoinBomb on June 01, 2013, 08:17:45 PM
Bitcoind 0.8.2 has a -walletnotify argument, whenever a balance affecting transaction triggers, it sends the tx hash to an external script.


Title: Re: monitor all transactions
Post by: grue on June 01, 2013, 08:47:49 PM
Bitcoind 0.8.2 has a -walletnotify argument, whenever a balance affecting transaction triggers, it sends the tx hash to an external script.
keep in mind it only triggers when a transaction affects the wallet. this will not list other user's transactions. only transactions related to addresses you own will trigger.


Title: Re: monitor all transactions
Post by: CoinBomb on June 02, 2013, 07:42:02 AM
Oops, my fault, didn't read the original question properly! Sorry


Title: Re: monitor all transactions
Post by: Brunt, FCA on June 03, 2013, 02:20:52 PM
This Python program works great.
https://bitcointalk.org/index.php?topic=102740.0
You can use it to monitor the blockchain, and have fun watching how much people are spending, in real time.
It also tells you when a new block has been mined.
Is this what the OP was after?