Changeset View
Changeset View
Standalone View
Standalone View
src/zmq/zmqrpc.cpp
Show All 11 Lines | |||||
#include <univalue.h> | #include <univalue.h> | ||||
namespace { | namespace { | ||||
UniValue getzmqnotifications(const Config &config, | UniValue getzmqnotifications(const Config &config, | ||||
const JSONRPCRequest &request) { | const JSONRPCRequest &request) { | ||||
if (request.fHelp || request.params.size() != 0) { | if (request.fHelp || request.params.size() != 0) { | ||||
throw std::runtime_error( | throw std::runtime_error( | ||||
"getzmqnotifications\n" | RPCHelpMan{"getzmqnotifications", | ||||
"\nReturns information about the active ZeroMQ notifications.\n" | "\nReturns information about the active ZeroMQ " | ||||
"notifications.\n", | |||||
{}} | |||||
.ToString() + | |||||
"\nResult:\n" | "\nResult:\n" | ||||
"[\n" | "[\n" | ||||
" { (json object)\n" | " { (json object)\n" | ||||
" \"type\": \"pubhashtx\", (string) Type of notification\n" | " \"type\": \"pubhashtx\", (string) Type of notification\n" | ||||
" \"address\": \"...\" (string) Address of the publisher\n" | " \"address\": \"...\" (string) Address of the publisher\n" | ||||
" },\n" | " },\n" | ||||
" ...\n" | " ...\n" | ||||
"]\n" | "]\n" | ||||
Show All 34 Lines |