From 60e0489fb1976fe6801ceefbaf72370c913d64d5 Mon Sep 17 00:00:00 2001 From: lostystyg Date: Tue, 5 Jul 2022 15:44:20 +0300 Subject: [PATCH] Updated getnotifications rpc description --- src/pocketdb/web/PocketContentRpc.cpp | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/pocketdb/web/PocketContentRpc.cpp b/src/pocketdb/web/PocketContentRpc.cpp index f428ab9c0..d6203ba7d 100644 --- a/src/pocketdb/web/PocketContentRpc.cpp +++ b/src/pocketdb/web/PocketContentRpc.cpp @@ -1117,18 +1117,23 @@ namespace PocketWeb::PocketWebRpc RPCHelpMan GetNotifications() { return RPCHelpMan{"GetNotifications", - "\nGet all possible notifications for all addresses for concrete block height.\n", - { - // TODO (rpc): provide args description - }, - { - // TODO (rpc): provide return description - }, - RPCExamples{ + "\nGet all possible notifications for all addresses for concrete block height.\n", + { + {"height", RPCArg::Type::NUM, RPCArg::Optional::NO, "height of block to search for"}, + {"filters", RPCArg::Type::ARR, RPCArg::Optional::OMITTED_NAMED_ARG, "filters to specify notification's types to search for. Default: search for all notifications. See \ngetevents\n to get available types", + { + {"filter", RPCArg::Type::STR, RPCArg::Optional::OMITTED_NAMED_ARG, ""} + } + } + }, + { + // TODO (rpc): provide return description + }, + RPCExamples{ // TODO (rpc) HelpExampleCli("getnotifications", "") + HelpExampleRpc("getnotifications", "") - }, + }, [&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue { RPCTypeCheck(request.params, {UniValue::VNUM});