15#ifdef ENABLE_EXTERNAL_SIGNER
20 "Returns a list of external signers from -signer.",
42 const std::string command =
gArgs.
GetArg(
"-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);
74 for (
const auto& c : commands) {
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.
void appendCommand(const std::string &name, const CRPCCommand *pcmd)
Appends a CRPCCommand to the dispatch table.
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.
bool push_back(const UniValue &val)
bool pushKV(const std::string &key, const UniValue &val)
UniValue JSONRPCError(int code, const std::string &message)
void RegisterSignerRPCCommands(CRPCTable &t)
Register raw transaction RPC commands.
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.