ZeroMQ (ZMQ) RPCs#
GetZmqNotifications#
The getzmqnotifications
RPC returns information about the active ZeroMQ notifications.
Parameters: none
Result—A JSON array of objects providing information about the enabled ZMQ notifications
Name |
Type |
Presence |
Description |
---|---|---|---|
|
array |
Required |
Array of objects containing Information about the enabled ZMQ notifications |
→ |
object |
Required |
Information about a ZMQ notification |
→ → |
string |
Required |
Type of notification |
→ → |
string |
Required |
Address of the publisher |
→ → |
number |
Required |
Outbound message high water mark |
Example from Dash Core 18.0.0
dash-cli -testnet getzmqnotifications
Result:
[
{
"type": "pubhashblock",
"address": "tcp://0.0.0.0:20009",
"hwm": 1000
},
{
"type": "pubhashchainlock",
"address": "tcp://0.0.0.0:20009",
"hwm": 1000
},
{
"type": "pubhashgovernanceobject",
"address": "tcp://0.0.0.0:20009",
"hwm": 1000
}
]
See also: none