Bitcoin Forum
June 21, 2024, 03:03:30 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Project Development / Re: How do I use ZeroMQ to monitor addresses? on: December 22, 2016, 06:30:32 PM
I've worked out the following scheme:

1. Listen for rawtx topic using ZeroMQ in order to receive raw transaction body.
2. Parse binary body and extract addresses from output scripts.
3. Compare addresses with local database in order to find matches.

Of course, list of pending transactions could be loaded into memory entirely in order to prevent too much requests to the database. Each address takes 20 bytes of memory, so you could store ~50K of them in 1MB of RAM.

Is this an optimal way to monitor specific addresses?
2  Bitcoin / Project Development / How do I use ZeroMQ to monitor addresses? on: December 22, 2016, 04:42:25 PM
Hello!

We're developing a Bitcoin service and we need to monitor local addresses for new transactions and transaction updates (confirmations).

ZeroMQ built into bitcoind looks like a pretty cool feature, however, as I see, it only receives IDs of the new transactions.

Is it possible to map transaction ID to Bitcoin address without issuing an RPC call to the node?

We don't want to flood the server with RPC requests, because new transactions are appearing very quickly.

Any suggestions are highly appreciated!  Cheesy

Thank you!
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!