42 const std::string &language,
bool testnet);
43 Wallet *
openWallet(
const std::string &path,
const std::string &password,
bool testnet);
44 virtual Wallet *
recoveryWallet(
const std::string &path,
const std::string &memo,
bool testnet, uint64_t restoreHeight);
46 const std::string &language,
48 uint64_t restoreHeight,
49 const std::string &addressString,
50 const std::string &viewKeyString,
51 const std::string &spendKeyString =
"");
54 bool verifyWalletPassword(
const std::string &keys_file_name,
const std::string &password,
bool watch_only)
const;
55 std::vector<std::string>
findWallets(
const std::string &path);
59 bool checkPayment(
const std::string &address,
const std::string &txid,
const std::string &txkey,
const std::string &daemon_address, uint64_t &received, uint64_t &
height, std::string &error)
const;
66 bool startMining(
const std::string &address, uint32_t threads = 1,
bool background_mining =
false,
bool ignore_battery =
true);
68 std::string
resolveOpenAlias(
const std::string &address,
bool &dnssec_valid)
const;
std::vector< std::string > findWallets(const std::string &path)
findWallets - searches for the wallet files by given path name recursively
Definition: wallet_manager.cpp:134
std::string m_errorString
Definition: wallet_manager.h:74
Wallet * openWallet(const std::string &path, const std::string &password, bool testnet)
Opens existing wallet.
Definition: wallet_manager.cpp:71
bool verifyWalletPassword(const std::string &keys_file_name, const std::string &password, bool watch_only) const
verifyWalletPassword - check if the given filename is the wallet
Definition: wallet_manager.cpp:129
virtual bool closeWallet(Wallet *wallet)
Closes wallet. In case operation succeded, wallet object deleted. in case operation failed...
Definition: wallet_manager.cpp:106
uint64_t height
Definition: blockchain.cpp:87
uint64_t blockchainHeight() const
returns current blockchain height
Definition: wallet_manager.cpp:309
Wallet * createWallet(const std::string &path, const std::string &password, const std::string &language, bool testnet)
Creates new wallet.
Definition: wallet_manager.cpp:63
void setDaemonAddress(const std::string &address)
set the daemon address (hostname and port)
Definition: wallet_manager.cpp:171
uint64_t networkDifficulty() const
returns current network difficulty
Definition: wallet_manager.cpp:329
bool walletExists(const std::string &path)
TODO: delme walletExists - check if the given filename is the wallet.
Definition: wallet_manager.cpp:118
bool startMining(const std::string &address, uint32_t threads=1, bool background_mining=false, bool ignore_battery=true)
starts mining with the set number of threads
Definition: wallet_manager.cpp:372
bool checkPayment(const std::string &address, const std::string &txid, const std::string &txkey, const std::string &daemon_address, uint64_t &received, uint64_t &height, std::string &error) const
checkPayment - checks a payment was made using a txkey
Definition: wallet_manager.cpp:191
Interface for wallet operations. TODO: check if /include/IWallet.h is still actual.
Definition: wallet2_api.h:274
Definition: address_book.cpp:41
double miningHashRate() const
returns current mining hash rate (0 if not mining)
Definition: wallet_manager.cpp:339
bool stopMining()
stops mining
Definition: wallet_manager.cpp:387
WalletManagerImpl()
Definition: wallet_manager.h:71
uint8_t version
Definition: blockchain.cpp:86
uint64_t blockchainTargetHeight() const
returns current blockchain target height
Definition: wallet_manager.cpp:319
uint64_t blockTarget() const
returns current block target
Definition: wallet_manager.cpp:352
virtual Wallet * createWalletFromKeys(const std::string &path, const std::string &language, bool testnet, uint64_t restoreHeight, const std::string &addressString, const std::string &viewKeyString, const std::string &spendKeyString="")
recovers existing wallet using keys. Creates a view only wallet if spend key is omitted ...
Definition: wallet_manager.cpp:90
bool isMining() const
returns true iff mining
Definition: wallet_manager.cpp:362
std::string errorString() const
returns verbose error string regarding last error;
Definition: wallet_manager.cpp:166
std::string m_daemonAddress
Definition: wallet_manager.h:73
Definition: wallet2_api.h:733
virtual Wallet * recoveryWallet(const std::string &path, const std::string &memo, bool testnet, uint64_t restoreHeight)
recovers existing wallet using memo (electrum seed)
Definition: wallet_manager.cpp:80
bool connected(uint32_t *version=NULL) const
returns whether the daemon can be reached, and its version number
Definition: wallet_manager.cpp:176
std::string resolveOpenAlias(const std::string &address, bool &dnssec_valid) const
resolves an OpenAlias address to a electroneum address
Definition: wallet_manager.cpp:397
WalletManager - provides functions to manage wallets.
Definition: wallet2_api.h:596
Definition: wallet_manager.h:38