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;
58 }
catch (
const std::exception&
e) {
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 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.
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.