18 throw std::runtime_error(
19 "getzmqnotifications\n" 20 "\nReturns information about the active ZeroMQ notifications.\n" 24 " \"type\": \"pubhashtx\", (string) Type of notification\n" 25 " \"address\": \"...\" (string) Address of the publisher\n" 39 obj.pushKV(
"type", n->GetType());
40 obj.pushKV(
"address", n->GetAddress());
41 result.push_back(obj);
51 {
"zmq",
"getzmqnotifications", &getzmqnotifications, {} },
58 for (
const auto& c : commands) {
Bitcoin RPC command dispatcher.
std::string HelpExampleRpc(const std::string &methodname, const std::string &args)
bool appendCommand(const std::string &name, const CRPCCommand *pcmd)
Appends a CRPCCommand to the dispatch table.
std::string HelpExampleCli(const std::string &methodname, const std::string &args)
void RegisterZMQRPCCommands(CRPCTable &t)
std::list< const CZMQAbstractNotifier * > GetActiveNotifiers() const
CZMQNotificationInterface * g_zmq_notification_interface