Changeset View
Changeset View
Standalone View
Standalone View
doc/zmq.md
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | Currently, the following notifications are supported: | ||||
-zmqpubhashtx=address | -zmqpubhashtx=address | ||||
-zmqpubhashblock=address | -zmqpubhashblock=address | ||||
-zmqpubrawblock=address | -zmqpubrawblock=address | ||||
-zmqpubrawtx=address | -zmqpubrawtx=address | ||||
-zmqpubsequence=address | -zmqpubsequence=address | ||||
The socket type is PUB and the address must be a valid ZeroMQ socket | The socket type is PUB and the address must be a valid ZeroMQ socket | ||||
address. The same address can be used in more than one notification. | address. The same address can be used in more than one notification. | ||||
The same notification can be specified more than once. | |||||
The option to set the PUB socket's outbound message high water mark | The option to set the PUB socket's outbound message high water mark | ||||
(SNDHWM) may be set individually for each notification: | (SNDHWM) may be set individually for each notification: | ||||
-zmqpubhashtxhwm=n | -zmqpubhashtxhwm=n | ||||
-zmqpubhashblockhwm=n | -zmqpubhashblockhwm=n | ||||
-zmqpubrawblockhwm=n | -zmqpubrawblockhwm=n | ||||
-zmqpubrawtxhwm=n | -zmqpubrawtxhwm=n | ||||
-zmqpubsequencehwm=address | -zmqpubsequencehwm=address | ||||
The high water mark value must be an integer greater than or equal to 0. | The high water mark value must be an integer greater than or equal to 0. | ||||
For instance: | For instance: | ||||
$ bitcoind -zmqpubhashtx=tcp://127.0.0.1:28332 \ | $ bitcoind -zmqpubhashtx=tcp://127.0.0.1:28332 \ | ||||
-zmqpubhashtx=tcp://192.168.1.2:28332 \ | |||||
-zmqpubrawtx=ipc:///tmp/bitcoind.tx.raw \ | -zmqpubrawtx=ipc:///tmp/bitcoind.tx.raw \ | ||||
-zmqpubhashtxhwm=10000 | -zmqpubhashtxhwm=10000 | ||||
Each PUB notification has a topic and body, where the header | Each PUB notification has a topic and body, where the header | ||||
corresponds to the notification type. For instance, for the | corresponds to the notification type. For instance, for the | ||||
notification `-zmqpubhashtx` the topic is `hashtx` (no null | notification `-zmqpubhashtx` the topic is `hashtx` (no null | ||||
terminator) and the body is the transaction hash (32 | terminator) and the body is the transaction hash (32 | ||||
bytes) for all but `sequence` topic. For `sequence`, the body | bytes) for all but `sequence` topic. For `sequence`, the body | ||||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |