 |
Bitcoin Core
22.99.0
P2P Digital Currency
|
Go to the documentation of this file.
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) {
75 t.appendCommand(c.name, &c);
79 #endif // ENABLE_EXTERNAL_SIGNER
@ RPC_MISC_ERROR
General application defined errors.
std::string HelpExampleCli(const std::string &methodname, const std::string &args)
std::string GetChainName() const
Returns the appropriate chain name from the program arguments.
static bool Enumerate(const std::string &command, std::vector< ExternalSigner > &signers, const std::string chain)
Obtain a list of signers.
bool pushKV(const std::string &key, const UniValue &val)
@ STR_HEX
Special string with only hex chars.
std::string GetArg(const std::string &strArg, const std::string &strDefault) const
Return string argument or default value.
std::string HelpExampleRpc(const std::string &methodname, const std::string &args)
Enables interaction with an external signing device or service, such as a hardware wallet.
static RPCHelpMan enumeratesigners()
UniValue JSONRPCError(int code, const std::string &message)
void RegisterSignerRPCCommands(CRPCTable &t)
Register raw transaction RPC commands.
bool push_back(const UniValue &val)