These docs are for v0.17.0. Click to read the latest docs for v19.0.0-redirect.

ZeroMQ (ZMQ) RPCs

GetZmqNotifications

👍

Added in Dash Core 0.17.0

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

NameTypePresenceDescription
resultarrayRequired
(exactly 1)
Array of objects containing Information about the enabled ZMQ notifications

Notification
objectRequired
(0 or more)
The name of the block chain. Either main for mainnet, test for testnet, regtest for regtest, or devnet-<name> for devnets
→ →
type
stringRequired
(exactly 1)
Type of notification
→ →
address
stringRequired
(exactly 1)
Address of the publisher

Example from Dash Core 0.17.0

dash-cli -testnet getzmqnotifications

Result:

[
  {
    "type": "pubhashblock",
    "address": "tcp://0.0.0.0:20009"
  },
  {
    "type": "pubhashchainlock",
    "address": "tcp://0.0.0.0:20009"
  },
  {
    "type": "pubhashgovernanceobject",
    "address": "tcp://0.0.0.0:20009"
  }
]

See also: none