diff options
author | Ivan Metlushko <metlushko@gmail.com> | 2021-03-03 09:32:14 +0100 |
---|---|---|
committer | Ivan Metlushko <metlushko@gmail.com> | 2021-03-03 09:36:23 +0100 |
commit | 5d5a90e819d23a302f9bec6b995a3116ead6ae94 (patch) | |
tree | 92314f386805d8cd8ef1de3998c31784a8c02bfb /src/rpc/util.h | |
parent | e49117470b77fb7d53be122c6490ba163c6e304d (diff) |
rpc: Add HelpExampleRpcNamed
Diffstat (limited to 'src/rpc/util.h')
-rw-r--r-- | src/rpc/util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rpc/util.h b/src/rpc/util.h index c54ce85f60..184dfc2940 100644 --- a/src/rpc/util.h +++ b/src/rpc/util.h @@ -78,8 +78,11 @@ extern std::vector<unsigned char> ParseHexV(const UniValue& v, std::string strNa extern std::vector<unsigned char> ParseHexO(const UniValue& o, std::string strKey); extern CAmount AmountFromValue(const UniValue& value); + +using RPCArgList = std::vector<std::pair<std::string, UniValue>>; extern std::string HelpExampleCli(const std::string& methodname, const std::string& args); extern std::string HelpExampleRpc(const std::string& methodname, const std::string& args); +extern std::string HelpExampleRpcNamed(const std::string& methodname, const RPCArgList& args); CPubKey HexToPubKey(const std::string& hex_in); CPubKey AddrToPubKey(const FillableSigningProvider& keystore, const std::string& addr_in); |