42 const std::string &language,
NetworkType nettype, uint64_t kdf_rounds = 1)
override;
45 const std::string &password,
46 const std::string &mnemonic,
48 uint64_t restoreHeight,
49 uint64_t kdf_rounds = 1,
50 const std::string &seed_offset = {})
override;
52 const std::string &password,
53 const std::string &language,
55 uint64_t restoreHeight,
56 const std::string &addressString,
57 const std::string &viewKeyString,
58 const std::string &spendKeyString =
"",
59 uint64_t kdf_rounds = 1)
override;
64 const std::string &language,
66 uint64_t restoreHeight,
67 const std::string &addressString,
68 const std::string &viewKeyString,
69 const std::string &spendKeyString =
"")
override;
71 const std::string &password,
73 const std::string &deviceName,
74 uint64_t restoreHeight = 0,
75 const std::string &subaddressLookahead =
"",
76 uint64_t kdf_rounds = 1,
80 bool verifyWalletPassword(
const std::string &keys_file_name,
const std::string &password,
bool no_spend_key, uint64_t kdf_rounds = 1)
const override;
81 bool queryWalletDevice(
Wallet::Device& device_type,
const std::string &keys_file_name,
const std::string &password, uint64_t kdf_rounds = 1)
const override;
82 std::vector<std::string>
findWallets(
const std::string &path)
override;
92 bool startMining(
const std::string &address, uint32_t threads = 1,
bool background_mining =
false,
bool ignore_battery =
true)
override;
94 std::string
resolveOpenAlias(
const std::string &address,
bool &dnssec_valid)
const override;
95 bool setProxy(
const std::string &address)
override;
Definition: wallet_manager.h:39
WalletManagerImpl()
Definition: wallet_manager.h:98
uint64_t blockchainTargetHeight() override
returns current blockchain target height
Definition: wallet_manager.cpp:259
bool queryWalletDevice(Wallet::Device &device_type, const std::string &keys_file_name, const std::string &password, uint64_t kdf_rounds=1) const override
determine the key storage for the specified wallet file
Definition: wallet_manager.cpp:184
double miningHashRate() override
returns current mining hash rate (0 if not mining)
Definition: wallet_manager.cpp:279
std::string resolveOpenAlias(const std::string &address, bool &dnssec_valid) const override
resolves an OpenAlias address to a monero address
Definition: wallet_manager.cpp:337
net::http::client m_http_client
Definition: wallet_manager.h:100
Wallet * openWallet(const std::string &path, const std::string &password, NetworkType nettype, uint64_t kdf_rounds=1, WalletListener *listener=nullptr) override
Opens existing wallet.
Definition: wallet_manager.cpp:60
bool isMining() override
returns true iff mining
Definition: wallet_manager.cpp:302
bool verifyWalletPassword(const std::string &keys_file_name, const std::string &password, bool no_spend_key, uint64_t kdf_rounds=1) const override
verifyWalletPassword - check if the given filename is the wallet
Definition: wallet_manager.cpp:179
Wallet * createWallet(const std::string &path, const std::string &password, const std::string &language, NetworkType nettype, uint64_t kdf_rounds=1) override
Creates new wallet.
Definition: wallet_manager.cpp:52
void setDaemonAddress(const std::string &address) override
set the daemon address (hostname and port)
Definition: wallet_manager.cpp:229
std::vector< std::string > findWallets(const std::string &path) override
findWallets - searches for the wallet files by given path name recursively
Definition: wallet_manager.cpp:192
std::string m_errorString
Definition: wallet_manager.h:101
uint64_t blockTarget() override
returns current block target
Definition: wallet_manager.cpp:292
bool connected(uint32_t *version=NULL) override
returns whether the daemon can be reached, and its version number
Definition: wallet_manager.cpp:234
uint64_t networkDifficulty() override
returns current network difficulty
Definition: wallet_manager.cpp:269
std::string errorString() const override
returns verbose error string regarding last error;
Definition: wallet_manager.cpp:224
virtual bool closeWallet(Wallet *wallet, bool store=true) override
Closes wallet. In case operation succeeded, wallet object deleted. in case operation failed,...
Definition: wallet_manager.cpp:154
virtual Wallet * recoveryWallet(const std::string &path, const std::string &password, const std::string &mnemonic, NetworkType nettype, uint64_t restoreHeight, uint64_t kdf_rounds=1, const std::string &seed_offset={}) override
recovers existing wallet using mnemonic (electrum seed)
Definition: wallet_manager.cpp:91
bool startMining(const std::string &address, uint32_t threads=1, bool background_mining=false, bool ignore_battery=true) override
starts mining with the set number of threads
Definition: wallet_manager.cpp:312
virtual Wallet * createWalletFromDevice(const std::string &path, const std::string &password, NetworkType nettype, const std::string &deviceName, uint64_t restoreHeight=0, const std::string &subaddressLookahead="", uint64_t kdf_rounds=1, WalletListener *listener=nullptr) override
creates wallet using hardware device.
Definition: wallet_manager.cpp:125
bool setProxy(const std::string &address) override
sets proxy address, empty string to disable
Definition: wallet_manager.cpp:378
bool walletExists(const std::string &path) override
TODO: delme walletExists - check if the given filename is the wallet.
Definition: wallet_manager.cpp:168
bool stopMining() override
stops mining
Definition: wallet_manager.cpp:327
virtual Wallet * createWalletFromKeys(const std::string &path, const std::string &password, const std::string &language, NetworkType nettype, uint64_t restoreHeight, const std::string &addressString, const std::string &viewKeyString, const std::string &spendKeyString="", uint64_t kdf_rounds=1) override
recovers existing wallet using keys. Creates a view only wallet if spend key is omitted
Definition: wallet_manager.cpp:107
uint64_t blockchainHeight() override
returns current blockchain height
Definition: wallet_manager.cpp:249
Definition: address_book.cpp:40
NetworkType
Definition: wallet2_api.h:45
version
Supported socks variants.
Definition: socks.h:58
Definition: wallet2_api.h:343
Definition: wallet2_api.h:1315
WalletManager - provides functions to manage wallets.
Definition: wallet2_api.h:1063
Interface for wallet operations. TODO: check if /include/IWallet.h is still actual.
Definition: wallet2_api.h:425
Device
Definition: wallet2_api.h:426