Questions tagged [zeromq]

For questions about the ZeroMQ messaging system for receiving notifications of new events from mining or wallet nodes.

"ZeroMQ is a publisher / subscriber messaging system. In the case of Bitcoin Core it is a socket which other applications can connect to and get notifications of new events in real time, without having to repeatedly ask the daemon if there are any new events." (from What is the use case of bitcoind ZeroMQ?)

42 questions
20
votes
1 answer

What is the use case of bitcoind ZeroMQ?

What is the use case of ZeroMQ implementation for bitcoind which will be merged into Bitcoin Core v0.12.0? Block and Transaction Broadcasting With ZeroMQ https://github.com/bitcoin/bitcoin/blob/master/doc/zmq.md
5
votes
1 answer

ZeroMQ Notifications in Browser JavaScript

I am trying to develop an online application primarily in JavaScript. As I am aware, the only way to receive notifications for unconfirmed/mempool transactions as they appear on the network is to utilize the -zmqpubrawtx or -zmqpubhashtx commands in…
OmegaLulz
  • 51
  • 3
4
votes
2 answers

How do I get the scriptPubKey type from the raw output script?

I use zeroMQ to get the transactions from Bitcoin Core. The output looks like this: { value: 200000, script: } The same output looks…
jfjobidon
  • 285
  • 2
  • 9
4
votes
2 answers

Using ZeroMQ of bitcoind to monitor addresses?

I'm developing a system which should monitor incoming transactions for the local addresses (addresses in this node's wallet). It would be great to use high-performance ZeroMQ for this. Is it possible? I know I can receive notifications about new…
Robert Wood
  • 163
  • 6
4
votes
1 answer

Bitcoin ZeroMQ and Scala application

I'm trying to connect to Bitcoin's ZeroMQ queue, having no success and don't even know where my problem is. Here is what I did so far on my Ubuntu 14.04: Installed Bitcoin via sudo apt-get install bitcoin-qt installed ZeroMQ via wget…
src091
  • 253
  • 1
  • 9
3
votes
1 answer

LND can't connect to ZMQ

I want to run my LND instance (again) and have some trouble with connecting to bitcoin's ZMQ. Here is what I do: $ bitcoin-cli getblockcount 575704 $ lnd --bitcoin.mainnet --bitcoin.active --debuglevel=debug --bitcoin.node=bitcoind…
greengold
  • 133
  • 4
3
votes
3 answers

How can I tell if bitcoind was compiled with ZeroMQ support?

Question How can I check to see if ZeroMQ is not active due to a config error or due to lack of support at compile time? Details I'm seeing a lot of messages like this from the insight logs: [2017-12-12T12:21:31.695Z] warn: ZMQ connection delay:…
coolaj86
  • 133
  • 1
  • 6
3
votes
1 answer

ZMQ Raw TX doesn't include all transactions

I'm running a Bitcore.io node and using their ZMQ hook but I've noticed that on livenet not all transactions are actually being sent. I've been comparing it to https://blockchain.info/unconfirmed-transactions and my realtime logs and can see that…
Sladey
  • 31
  • 1
3
votes
1 answer

What happened to the "time" (and blocktime) field of raw transactions?

I have been calling the HTTP method getrawtransaction for a while now to retrieve raw transactions. It used to be, until recently, that I would get the time field with every transaction. However, in the last few days, I noticed that this field is no…
3
votes
1 answer

What's the difference between hashtx and rawtx in ZeroMQ of bitcoind?

I'm trying to use ZeroMQ integration feature from bitcoind. According to docs it supports four topic: hashtx hashblock rawblock rawtx Sadly, they are not very well documented. So, what is the difference between raw/hash topics?
Robert Wood
  • 163
  • 6
3
votes
1 answer

How do I maintain a continuously updated copy of a local mempool?

Let's say I want to build a database of transactions that is continuously being updated from a locally running Bitcoin Core node using JSON-RPC and ZeroMQ. My concern is how to make it robust against chain reorganizations and other events where…
Vojtěch Strnad
  • 5,623
  • 1
  • 8
  • 31
2
votes
2 answers

are official bitcoin core released compiled with zmq in general?

I installed the binary and try to listen to ZeroMQ stream. But I got nothing out. Then I installed ZeroMQ but still got nothing. https://bitcoin.org/en/release/v0.17.1 so, are official bitcoin core releases compiled with zmq in…
Hami
  • 161
  • 6
2
votes
1 answer

Is it possible to catch up missing blocks with zeroMQ if script was down for a while?

I use zeroMQ to get all new blocks (rawblock or hashblock). If my script is down for few minutes or hours and I missed few blocks, is it possible to catch up all missed blocks with zeroMQ when I restart the script ? During this time, bitcoin-core is…
jfjobidon
  • 285
  • 2
  • 9
2
votes
1 answer

Cannot get the same address format from zeroMQ and Bitcoin Core

I use nodejs with this npm library: const bitcoinjs = require('bitcoinjs-lib'); // version "^5.1.6" I received a rawTx from zeroMq, then extract it: const tx = bitcoinjs.Transaction.fromHex(rawTx); the txID is…
jfjobidon
  • 285
  • 2
  • 9
2
votes
0 answers

Bitcoind zmqpubrawtx notification - Filter out mempool transactions

Bitcoind's zmqpubrawtx seems to notify the subscriber of any transactions that have been accepted to the mempool or included in a block. Is there any easy way to filter out the mined transactions so we're only left with new mempool transactions? If…
cfly24
  • 101
  • 3
1
2 3