ZeroMQ (ZMQ) RPCs

🚧

New site!

All content has been migrated to docs.dash.org. You will be automatically redirected momentarily.

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)
Information about a ZMQ notification
β†’ β†’
type
stringRequired
(exactly 1)
Type of notification
β†’ β†’
address
stringRequired
(exactly 1)
Address of the publisher
β†’ β†’
hwm
numberRequired
(exactly 1)
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