7#include <chainparams.h>
19 if (!fs::is_directory(path)) {
27 if (fs::is_directory(path /
"wallets")) {
71 if (
Params().IsTestChain()) {
83 std::vector<std::unique_ptr<Descriptor>> desc =
Parse(
desc_str, keys, error,
false);
const CChainParams & Params()
Return the currently selected parameters.
fs::path GetDataDirNet() const
Get data directory path with appended network identifier.
bool IsArgSet(const std::string &strArg) const
Return true if the given argument has been manually set.
fs::path GetPathArg(std::string arg, const fs::path &default_value={}) const
Return path argument or default value.
Descriptor with some wallet metadata.
static UniValue Parse(std::string_view raw, ParamFormat format=ParamFormat::JSON)
Parse string to UniValue or throw runtime_error if string contains invalid JSON.
std::string EncodeExtPubKey(const CExtPubKey &key)
fs::path GetWalletDir()
Get the path of the wallet directory.
WalletDescriptor GenerateWalletDescriptor(const CExtPubKey &master_key, const OutputType &addr_type, bool internal)
int64_t GetTime()
DEPRECATED Use either ClockType::now() or Now<TimePointType>() if a cast is needed.
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.