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) { | ||||
RPCHelpMan{ | RPCHelpMan{ | ||||
"getzmqnotifications", | "getzmqnotifications", | ||||
"\nReturns information about the active ZeroMQ notifications.\n", | "Returns information about the active ZeroMQ notifications.\n", | ||||
{}, | {}, | ||||
RPCResult{ | RPCResult{ | ||||
"[\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" | ||||
" \"hwm\": n (numeric) Outbound message high " | " \"hwm\": n (numeric) Outbound message high " | ||||
"water mark\n" | "water mark\n" | ||||
Show All 38 Lines |