rpc: add help for enumeratesigners and walletdisplayaddress

This commit is contained in:
Sjors Provoost
2021-03-26 10:28:37 +01:00
parent b0db187e5b
commit 88d4d5ff2f
2 changed files with 11 additions and 8 deletions

View File

@@ -13,8 +13,7 @@
static RPCHelpMan enumeratesigners()
{
return RPCHelpMan{
"enumeratesigners",
return RPCHelpMan{"enumeratesigners",
"Returns a list of external signers from -signer.",
{},
RPCResult{
@@ -28,8 +27,12 @@ static RPCHelpMan enumeratesigners()
}
}
},
RPCExamples{""},
[](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue {
RPCExamples{
HelpExampleCli("enumeratesigners", "")
+ HelpExampleRpc("enumeratesigners", "")
},
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
{
const std::string command = gArgs.GetArg("-signer", "");
if (command == "") throw JSONRPCError(RPC_MISC_ERROR, "Error: restart bitcoind with -signer=<cmd>");
std::string chain = gArgs.GetChainName();