15 #ifdef ENABLE_EXTERNAL_SIGNER
20 "Returns a list of external signers from -signer.",
47 std::vector<ExternalSigner> signers;
51 signer_res.
pushKV(
"fingerprint", signer.m_fingerprint);
52 signer_res.
pushKV(
"name", signer.m_name);
55 }
catch (
const std::exception& e) {
59 result.
pushKV(
"signers", signers_res);
70 for (
const auto& c : commands) {
71 t.appendCommand(c.name, &c);
std::string GetArg(const std::string &strArg, const std::string &strDefault) const
Return string argument or default value.
std::string GetChainName() const
Returns the appropriate chain name from the program arguments.
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.