Changeset View
Changeset View
Standalone View
Standalone View
doc/zmq.md
Show First 20 Lines • Show All 59 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 | ||||
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 option to set the PUB socket's outbound message high water mark | |||||
(SNDHWM) may be set individually for each notification: | |||||
-zmqpubhashtxhwm=n | |||||
-zmqpubhashblockhwm=n | |||||
-zmqpubrawblockhwm=n | |||||
-zmqpubrawtxhwm=n | |||||
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 \ | ||||
-zmqpubrawtx=ipc:///tmp/bitcoind.tx.raw | -zmqpubrawtx=ipc:///tmp/bitcoind.tx.raw \ | ||||
-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). | bytes). | ||||
These options can also be provided in bitcoin.conf. | These options can also be provided in bitcoin.conf. | ||||
Show All 28 Lines |