Bitcoin’s ZeroMQ interface is handy for software layered on top of the core daemon, like wallet frontends (or other similar things). It would be useful to have an easy way to query the daemon whether ZeroMQ publications are enabled and if so which address is configured for them. That way, such a frontend application can show a helpful message to the user if the daemon is not configured correctly.
We could add a new RPC method for this, like getzmqinfo
. In the simplest case, it would be called without arguments and just return a JSON object that contains whether each of the possible ZeroMQ endpoints (hashtx
, hashblock
, rawtx
and rawblock
) is configured and if so at which address.