5#include <bitcoin-build-config.h>
18#ifdef ENABLE_EXTERNAL_SIGNER
23 "Returns a list of external signers from -signer.",
50 std::vector<ExternalSigner> signers;
56 signers_res.
push_back(std::move(signer_res));
58 }
catch (
const std::exception& e) {
62 result.
pushKV(
"signers", std::move(signers_res));
73 for (
const auto& c : commands) {
74 t.appendCommand(c.name, &c);
std::string GetChainTypeString() const
Returns the appropriate chain type string from the program arguments.
std::string GetArg(const std::string &strArg, const std::string &strDefault) const
Return string argument or default value.
Enables interaction with an external signing device or service, such as a hardware wallet.
static bool Enumerate(const std::string &command, std::vector< ExternalSigner > &signers, const std::string chain)
Obtain a list of signers.
void push_back(UniValue val)
void pushKV(std::string key, UniValue val)
UniValue JSONRPCError(int code, const std::string &message)
void RegisterSignerRPCCommands(CRPCTable &t)
static RPCHelpMan enumeratesigners()
@ RPC_MISC_ERROR
General application defined errors.
std::string HelpExampleCli(const std::string &methodname, const std::string &args)
std::string HelpExampleRpc(const std::string &methodname, const std::string &args)
@ STR_HEX
Special string with only hex chars.