Monero C++ Library
monero_wallet_full.h
1 
53 #pragma once
54 
55 #include "monero_wallet.h"
56 #include "wallet/wallet2.h"
57 
58 #include <boost/thread/mutex.hpp>
59 #include <boost/thread/thread.hpp>
60 #include <boost/thread/condition_variable.hpp>
61 
65 namespace monero {
66 
67  // -------------------------------- LISTENERS -------------------------------
68 
69  // forward declaration of internal wallet2 listener
70  struct wallet2_listener;
71 
72  // --------------------------- STATIC WALLET UTILS --------------------------
73 
78 
79  public:
80 
87  static bool wallet_exists(const std::string& path);
88 
97  static monero_wallet_full* open_wallet(const std::string& path, const std::string& password, const monero_network_type network_type);
98 
110  static monero_wallet_full* open_wallet_data(const std::string& password, const monero_network_type, const std::string& keys_data, const std::string& cache_data, const monero_rpc_connection& daemon_connection = monero_rpc_connection(), std::unique_ptr<epee::net_utils::http::http_client_factory> http_client_factory = nullptr);
111 
123  static monero_wallet_full* create_wallet_random(const std::string& path, const std::string& password, const monero_network_type network_type, const monero_rpc_connection& daemon_connection = monero_rpc_connection(), const std::string& language = "English", std::unique_ptr<epee::net_utils::http::http_client_factory> http_client_factory = nullptr);
124 
137  static monero_wallet_full* create_wallet_from_mnemonic(const std::string& path, const std::string& password, const monero_network_type network_type, const std::string& mnemonic, const monero_rpc_connection& daemon_connection = monero_rpc_connection(), uint64_t restore_height = 0, const std::string& seed_offset = "", std::unique_ptr<epee::net_utils::http::http_client_factory> http_client_factory = nullptr);
138 
154  static monero_wallet_full* create_wallet_from_keys(const std::string& path, const std::string& password, const monero_network_type network_type, const std::string& address, const std::string& view_key, const std::string& spend_key, const monero_rpc_connection& daemon_connection = monero_rpc_connection(), uint64_t restore_height = 0, const std::string& language = "English", std::unique_ptr<epee::net_utils::http::http_client_factory> http_client_factory = nullptr);
155 
161  static std::vector<std::string> get_mnemonic_languages();
162 
163  // ----------------------------- WALLET METHODS -----------------------------
164 
169 
173  bool is_view_only() const override { return m_w2->watch_only(); }
174  void set_daemon_connection(const std::string& uri, const std::string& username = "", const std::string& password = "") override;
175  void set_daemon_connection(const boost::optional<monero_rpc_connection>& connection) override;
176  boost::optional<monero_rpc_connection> get_daemon_connection() const override;
177  bool is_connected_to_daemon() const override;
178  bool is_daemon_synced() const override;
179  bool is_daemon_trusted() const override;
180  bool is_synced() const override;
181  monero_version get_version() const override;
182  std::string get_path() const override;
183  monero_network_type get_network_type() const override;
184  std::string get_mnemonic() const override;
185  std::string get_mnemonic_language() const override;
186  std::string get_public_view_key() const override;
187  std::string get_private_view_key() const override;
188  std::string get_public_spend_key() const override;
189  std::string get_private_spend_key() const override;
190  std::string get_address(const uint32_t account_idx, const uint32_t subaddress_idx) const override;
191  monero_subaddress get_address_index(const std::string& address) const override;
192  monero_integrated_address get_integrated_address(const std::string& standard_address = "", const std::string& payment_id = "") const override;
193  monero_integrated_address decode_integrated_address(const std::string& integrated_address) const override;
194  uint64_t get_height() const override;
195  uint64_t get_sync_height() const override;
196  void set_sync_height(uint64_t sync_height) override;
197  uint64_t get_daemon_height() const override;
198  uint64_t get_daemon_max_peer_height() const override;
199  uint64_t get_height_by_date(uint16_t year, uint8_t month, uint8_t day) const override;
200  void add_listener(monero_wallet_listener& listener) override;
201  void remove_listener(monero_wallet_listener& listener) override;
202  std::set<monero_wallet_listener*> get_listeners() override;
203  monero_sync_result sync() override;
204  monero_sync_result sync(monero_wallet_listener& listener) override;
205  monero_sync_result sync(uint64_t start_height) override;
206  monero_sync_result sync(uint64_t start_height, monero_wallet_listener& listener) override;
207  void start_syncing(uint64_t sync_period_in_ms) override;
208  void stop_syncing() override;
209  void rescan_spent() override;
210  void rescan_blockchain() override;
211  uint64_t get_balance() const override;
212  uint64_t get_balance(uint32_t account_idx) const override;
213  uint64_t get_balance(uint32_t account_idx, uint32_t subaddress_idx) const override;
214  uint64_t get_unlocked_balance() const override;
215  uint64_t get_unlocked_balance(uint32_t account_idx) const override;
216  uint64_t get_unlocked_balance(uint32_t account_idx, uint32_t subaddress_idx) const override;
217  std::vector<monero_account> get_accounts(bool include_subaddresses, const std::string& tag) const override;
218  monero_account get_account(const uint32_t account_idx, bool include_subaddresses) const override;
219  monero_account create_account(const std::string& label = "") override;
220  std::vector<monero_subaddress> get_subaddresses(const uint32_t account_idx, const std::vector<uint32_t>& subaddress_indices) const override;
221  monero_subaddress create_subaddress(uint32_t account_idx, const std::string& label = "") override;
222  std::vector<std::shared_ptr<monero_tx_wallet>> get_txs() const override;
223  std::vector<std::shared_ptr<monero_tx_wallet>> get_txs(const monero_tx_query& query) const override;
224  std::vector<std::shared_ptr<monero_tx_wallet>> get_txs(const monero_tx_query& query, std::vector<std::string>& missing_tx_hashes) const override;
225  std::vector<std::shared_ptr<monero_transfer>> get_transfers(const monero_transfer_query& query) const override;
226  std::vector<std::shared_ptr<monero_output_wallet>> get_outputs(const monero_output_query& query) const override;
227  std::string export_outputs(bool all = false) const override;
228  int import_outputs(const std::string& outputs_hex) override;
229  std::vector<std::shared_ptr<monero_key_image>> export_key_images(bool all = false) const override;
230  std::shared_ptr<monero_key_image_import_result> import_key_images(const std::vector<std::shared_ptr<monero_key_image>>& key_images) override;
231  void freeze_output(const std::string& key_image) override;
232  void thaw_output(const std::string& key_image) override;
233  bool is_output_frozen(const std::string& key_image) override;
234  std::vector<std::shared_ptr<monero_tx_wallet>> create_txs(const monero_tx_config& config) override;
235  std::vector<std::shared_ptr<monero_tx_wallet>> sweep_unlocked(const monero_tx_config& config) override;
236  std::shared_ptr<monero_tx_wallet> sweep_output(const monero_tx_config& config) override;
237  std::vector<std::shared_ptr<monero_tx_wallet>> sweep_dust(bool relay = false) override;
238  std::vector<std::string> relay_txs(const std::vector<std::string>& tx_metadatas) override;
239  monero_tx_set describe_tx_set(const monero_tx_set& tx_set) override;
240  std::string sign_txs(const std::string& unsigned_tx_hex) override;
241  std::vector<std::string> submit_txs(const std::string& signed_tx_hex) override;
242  std::string sign_message(const std::string& msg, monero_message_signature_type signature_type, uint32_t account_idx = 0, uint32_t subaddress_idx = 0) const override;
243  monero_message_signature_result verify_message(const std::string& msg, const std::string& address, const std::string& signature) const override;
244  std::string get_tx_key(const std::string& tx_hash) const override;
245  std::shared_ptr<monero_check_tx> check_tx_key(const std::string& tx_hash, const std::string& txKey, const std::string& address) const override;
246  std::string get_tx_proof(const std::string& tx_hash, const std::string& address, const std::string& message) const override;
247  std::shared_ptr<monero_check_tx> check_tx_proof(const std::string& tx_hash, const std::string& address, const std::string& message, const std::string& signature) const override;
248  std::string get_spend_proof(const std::string& tx_hash, const std::string& message) const override;
249  bool check_spend_proof(const std::string& tx_hash, const std::string& message, const std::string& signature) const override;
250  std::string get_reserve_proof_wallet(const std::string& message) const override;
251  std::string get_reserve_proof_account(uint32_t account_idx, uint64_t amount, const std::string& message) const override;
252  std::shared_ptr<monero_check_reserve> check_reserve_proof(const std::string& address, const std::string& message, const std::string& signature) const override;
253  std::string get_tx_note(const std::string& tx_hash) const override;
254  std::vector<std::string> get_tx_notes(const std::vector<std::string>& tx_hashes) const override;
255  void set_tx_note(const std::string& tx_hash, const std::string& note) override;
256  void set_tx_notes(const std::vector<std::string>& tx_hashes, const std::vector<std::string>& notes) override;
257  std::vector<monero_address_book_entry> get_address_book_entries(const std::vector<uint64_t>& indices) const override;
258  uint64_t add_address_book_entry(const std::string& address, const std::string& description) override;
259  void edit_address_book_entry(uint64_t index, bool set_address, const std::string& address, bool set_description, const std::string& description) override;
260  void delete_address_book_entry(uint64_t index) override;
261  std::string get_payment_uri(const monero_tx_config& config) const override;
262  std::shared_ptr<monero_tx_config> parse_payment_uri(const std::string& uri) const override;
263  bool get_attribute(const std::string& key, std::string& value) const override;
264  void set_attribute(const std::string& key, const std::string& val) override;
265  void start_mining(boost::optional<uint64_t> num_threads, boost::optional<bool> background_mining, boost::optional<bool> ignore_battery) override;
266  void stop_mining() override;
267  uint64_t wait_for_next_block() override;
268  bool is_multisig_import_needed() const override;
269  monero_multisig_info get_multisig_info() const override;
270  std::string prepare_multisig() override;
271  std::string make_multisig(const std::vector<std::string>& multisig_hexes, int threshold, const std::string& password) override;
272  monero_multisig_init_result exchange_multisig_keys(const std::vector<std::string>& mutisig_hexes, const std::string& password) override;
273  std::string export_multisig_hex() override;
274  int import_multisig_hex(const std::vector<std::string>& multisig_hexes) override;
275  monero_multisig_sign_result sign_multisig_tx_hex(const std::string& multisig_tx_hex) override;
276  std::vector<std::string> submit_multisig_tx_hex(const std::string& signed_multisig_tx_hex) override;
277  void change_password(const std::string& old_password, const std::string& new_password) override;
278  void move_to(const std::string& path, const std::string& password) override;
279  void save() override;
280  void close(bool save = false) override;
281 
285  std::string get_keys_file_buffer(const epee::wipeable_string& password, bool view_only) const;
286  std::string get_cache_file_buffer(const epee::wipeable_string& password) const;
287 
288  // --------------------------------- PRIVATE --------------------------------
289 
290  private:
291  friend struct wallet2_listener;
292  std::unique_ptr<tools::wallet2> m_w2; // internal wallet implementation
293  std::unique_ptr<wallet2_listener> m_w2_listener; // internal wallet implementation listener
294  std::set<monero_wallet_listener*> m_listeners; // external wallet listeners
295 
296  void init_common();
297  std::vector<monero_subaddress> get_subaddresses_aux(uint32_t account_idx, const std::vector<uint32_t>& subaddress_indices, const std::vector<tools::wallet2::transfer_details>& transfers) const;
298  std::vector<std::shared_ptr<monero_transfer>> get_transfers_aux(const monero_transfer_query& query) const;
299  std::vector<std::shared_ptr<monero_output_wallet>> get_outputs_aux(const monero_output_query& query) const;
300  std::vector<std::shared_ptr<monero_tx_wallet>> sweep_account(const monero_tx_config& config); // sweeps unlocked funds within an account; private helper to sweep_unlocked()
301 
302  // blockchain sync management
303  mutable std::atomic<bool> m_is_synced; // whether or not wallet is synced
304  mutable std::atomic<bool> m_is_connected; // cache connection status to avoid unecessary RPC calls
305  boost::condition_variable m_sync_cv; // to make sync threads woke
306  boost::mutex m_sync_mutex; // synchronize sync() and syncAsync() requests
307  std::atomic<bool> m_rescan_on_sync; // whether or not to rescan on sync
308  std::atomic<bool> m_syncing_enabled; // whether or not auto sync is enabled
309  std::atomic<bool> m_sync_loop_running; // whether or not the syncing thread is shut down
310  std::atomic<int> m_syncing_interval; // auto sync loop interval in milliseconds
311  boost::thread m_syncing_thread; // thread for auto sync loop
312  boost::mutex m_syncing_mutex; // synchronize auto sync loop
313  void run_sync_loop(); // run the sync loop in a thread
314  monero_sync_result lock_and_sync(boost::optional<uint64_t> start_height = boost::none); // internal function to synchronize request to sync and rescan
315  monero_sync_result sync_aux(boost::optional<uint64_t> start_height = boost::none); // internal function to immediately block, sync, and report progress
316  };
317 }
monero::monero_wallet_full::~monero_wallet_full
~monero_wallet_full()
Definition: monero_wallet_full.cpp:1180
monero::monero_tx_set
Definition: monero_wallet_model.h:309
monero::monero_wallet_full::verify_message
monero_message_signature_result verify_message(const std::string &msg, const std::string &address, const std::string &signature) const override
Definition: monero_wallet_full.cpp:2687
monero::monero_wallet_full::get_multisig_info
monero_multisig_info get_multisig_info() const override
Definition: monero_wallet_full.cpp:3167
monero::monero_wallet_full
Definition: monero_wallet_full.h:77
monero::monero_wallet_full::get_reserve_proof_account
std::string get_reserve_proof_account(uint32_t account_idx, uint64_t amount, const std::string &message) const override
Definition: monero_wallet_full.cpp:2880
monero::monero_wallet_full::wallet_exists
static bool wallet_exists(const std::string &path)
Definition: monero_wallet_full.cpp:1036
monero::monero_wallet_full::get_mnemonic
std::string get_mnemonic() const override
Definition: monero_wallet_full.cpp:1264
monero
Definition: monero_daemon.cpp:58
monero::monero_wallet_full::get_mnemonic_language
std::string get_mnemonic_language() const override
Definition: monero_wallet_full.cpp:1271
monero::monero_wallet_full::edit_address_book_entry
void edit_address_book_entry(uint64_t index, bool set_address, const std::string &address, bool set_description, const std::string &description) override
Definition: monero_wallet_full.cpp:2993
monero::monero_tx_query
Definition: monero_wallet_model.h:278
monero::monero_wallet_full::get_path
std::string get_path() const override
Definition: monero_wallet_full.cpp:1256
monero::monero_account
Definition: monero_wallet_model.h:96
monero::monero_multisig_info
Definition: monero_wallet_model.h:435
monero::monero_wallet_full::is_connected_to_daemon
bool is_connected_to_daemon() const override
Definition: monero_wallet_full.cpp:1226
monero::monero_wallet_listener
Definition: monero_wallet.h:71
monero::monero_wallet_full::export_multisig_hex
std::string export_multisig_hex() override
Definition: monero_wallet_full.cpp:3210
monero::monero_message_signature_result
Definition: monero_wallet_model.h:393
monero::monero_wallet_full::stop_syncing
void stop_syncing() override
Definition: monero_wallet_full.cpp:1474
monero::monero_wallet_full::rescan_blockchain
void rescan_blockchain() override
Definition: monero_wallet_full.cpp:1487
monero::monero_wallet_full::get_account
monero_account get_account(const uint32_t account_idx, bool include_subaddresses) const override
Definition: monero_wallet_full.cpp:1546
monero::monero_wallet_full::sweep_dust
std::vector< std::shared_ptr< monero_tx_wallet > > sweep_dust(bool relay=false) override
Definition: monero_wallet_full.cpp:2327
monero::monero_wallet_full::create_wallet_random
static monero_wallet_full * create_wallet_random(const std::string &path, const std::string &password, const monero_network_type network_type, const monero_rpc_connection &daemon_connection=monero_rpc_connection(), const std::string &language="English", std::unique_ptr< epee::net_utils::http::http_client_factory > http_client_factory=nullptr)
Definition: monero_wallet_full.cpp:1066
monero::monero_wallet_full::get_daemon_max_peer_height
uint64_t get_daemon_max_peer_height() const override
Definition: monero_wallet_full.cpp:1389
monero::monero_wallet_full::check_reserve_proof
std::shared_ptr< monero_check_reserve > check_reserve_proof(const std::string &address, const std::string &message, const std::string &signature) const override
Definition: monero_wallet_full.cpp:2888
monero::monero_wallet_full::get_network_type
monero_network_type get_network_type() const override
Definition: monero_wallet_full.cpp:1260
monero::monero_multisig_sign_result
Definition: monero_wallet_model.h:459
monero::monero_wallet_full::sign_multisig_tx_hex
monero_multisig_sign_result sign_multisig_tx_hex(const std::string &multisig_tx_hex) override
Definition: monero_wallet_full.cpp:3245
monero::monero_wallet_full::open_wallet
static monero_wallet_full * open_wallet(const std::string &path, const std::string &password, const monero_network_type network_type)
Definition: monero_wallet_full.cpp:1044
monero::monero_wallet_full::is_view_only
bool is_view_only() const override
Definition: monero_wallet_full.h:173
monero::monero_wallet_full::get_listeners
std::set< monero_wallet_listener * > get_listeners() override
Definition: monero_wallet_full.cpp:1414
monero::monero_wallet_full::get_address
std::string get_address(const uint32_t account_idx, const uint32_t subaddress_idx) const override
Definition: monero_wallet_full.cpp:1298
monero::monero_wallet_full::get_subaddresses
std::vector< monero_subaddress > get_subaddresses(const uint32_t account_idx, const std::vector< uint32_t > &subaddress_indices) const override
Definition: monero_wallet_full.cpp:1578
monero::monero_wallet_full::get_keys_file_buffer
std::string get_keys_file_buffer(const epee::wipeable_string &password, bool view_only) const
Definition: monero_wallet_full.cpp:3347
monero::monero_wallet_full::get_tx_proof
std::string get_tx_proof(const std::string &tx_hash, const std::string &address, const std::string &message) const override
Definition: monero_wallet_full.cpp:2795
monero::monero_wallet_full::check_tx_key
std::shared_ptr< monero_check_tx > check_tx_key(const std::string &tx_hash, const std::string &txKey, const std::string &address) const override
Definition: monero_wallet_full.cpp:2745
monero::monero_wallet_full::get_attribute
bool get_attribute(const std::string &key, std::string &value) const override
Definition: monero_wallet_full.cpp:3083
monero::monero_wallet_full::exchange_multisig_keys
monero_multisig_init_result exchange_multisig_keys(const std::vector< std::string > &mutisig_hexes, const std::string &password) override
Definition: monero_wallet_full.cpp:3187
monero::monero_wallet_full::is_daemon_trusted
bool is_daemon_trusted() const override
Definition: monero_wallet_full.cpp:1240
monero::monero_wallet_full::import_key_images
std::shared_ptr< monero_key_image_import_result > import_key_images(const std::vector< std::shared_ptr< monero_key_image >> &key_images) override
Definition: monero_wallet_full.cpp:1793
monero::monero_wallet_full::get_tx_key
std::string get_tx_key(const std::string &tx_hash) const override
Definition: monero_wallet_full.cpp:2720
monero::monero_wallet_full::is_multisig_import_needed
bool is_multisig_import_needed() const override
Definition: monero_wallet_full.cpp:3163
monero::monero_wallet_full::get_private_spend_key
std::string get_private_spend_key() const override
Definition: monero_wallet_full.cpp:1291
monero::monero_wallet_full::get_height
uint64_t get_height() const override
Definition: monero_wallet_full.cpp:1369
monero::monero_wallet_full::submit_multisig_tx_hex
std::vector< std::string > submit_multisig_tx_hex(const std::string &signed_multisig_tx_hex) override
Definition: monero_wallet_full.cpp:3288
monero::monero_tx_config
Definition: monero_wallet_model.h:344
monero::monero_wallet_full::prepare_multisig
std::string prepare_multisig() override
Definition: monero_wallet_full.cpp:3173
monero::monero_wallet_full::describe_tx_set
monero_tx_set describe_tx_set(const monero_tx_set &tx_set) override
Definition: monero_wallet_full.cpp:2474
monero::monero_wallet_full::set_tx_notes
void set_tx_notes(const std::vector< std::string > &tx_hashes, const std::vector< std::string > &notes) override
Definition: monero_wallet_full.cpp:2936
monero::monero_wallet_full::start_mining
void start_mining(boost::optional< uint64_t > num_threads, boost::optional< bool > background_mining, boost::optional< bool > ignore_battery) override
Definition: monero_wallet_full.cpp:3091
monero::monero_wallet_full::create_txs
std::vector< std::shared_ptr< monero_tx_wallet > > create_txs(const monero_tx_config &config) override
Definition: monero_wallet_full.cpp:1841
monero::monero_wallet
Definition: monero_wallet.h:123
monero::monero_wallet_full::export_outputs
std::string export_outputs(bool all=false) const override
Definition: monero_wallet_full.cpp:1762
monero::monero_output_query
Definition: monero_wallet_model.h:225
monero::monero_subaddress
Definition: monero_wallet_model.h:79
monero::monero_wallet_full::get_tx_note
std::string get_tx_note(const std::string &tx_hash) const override
Definition: monero_wallet_full.cpp:2909
monero::monero_wallet_full::save
void save() override
Definition: monero_wallet_full.cpp:3342
monero::monero_wallet_full::import_multisig_hex
int import_multisig_hex(const std::vector< std::string > &multisig_hexes) override
Definition: monero_wallet_full.cpp:3217
monero::monero_network_type
monero_network_type
Definition: monero_daemon_model.h:90
monero::monero_sync_result
Definition: monero_wallet_model.h:67
monero::monero_wallet_full::get_transfers
std::vector< std::shared_ptr< monero_transfer > > get_transfers(const monero_transfer_query &query) const override
Definition: monero_wallet_full.cpp:1720
monero::monero_wallet_full::get_sync_height
uint64_t get_sync_height() const override
Definition: monero_wallet_full.cpp:1373
monero::monero_wallet_full::get_unlocked_balance
uint64_t get_unlocked_balance() const override
Definition: monero_wallet_full.cpp:1510
monero::monero_wallet_full::import_outputs
int import_outputs(const std::string &outputs_hex) override
Definition: monero_wallet_full.cpp:1766
monero::monero_wallet_full::get_spend_proof
std::string get_spend_proof(const std::string &tx_hash, const std::string &message) const override
Definition: monero_wallet_full.cpp:2845
monero::monero_wallet_full::check_spend_proof
bool check_spend_proof(const std::string &tx_hash, const std::string &message, const std::string &signature) const override
Definition: monero_wallet_full.cpp:2858
monero::monero_wallet_full::move_to
void move_to(const std::string &path, const std::string &password) override
Definition: monero_wallet_full.cpp:3337
monero::monero_wallet_full::delete_address_book_entry
void delete_address_book_entry(uint64_t index) override
Definition: monero_wallet_full.cpp:3026
monero::monero_wallet_full::relay_txs
std::vector< std::string > relay_txs(const std::vector< std::string > &tx_metadatas) override
Definition: monero_wallet_full.cpp:2426
monero::monero_wallet_full::set_attribute
void set_attribute(const std::string &key, const std::string &val) override
Definition: monero_wallet_full.cpp:3087
monero::monero_wallet_full::get_daemon_connection
boost::optional< monero_rpc_connection > get_daemon_connection() const override
Definition: monero_wallet_full.cpp:1211
monero::monero_integrated_address
Definition: monero_wallet_model.h:323
monero::monero_wallet_full::check_tx_proof
std::shared_ptr< monero_check_tx > check_tx_proof(const std::string &tx_hash, const std::string &address, const std::string &message, const std::string &signature) const override
Definition: monero_wallet_full.cpp:2813
monero::monero_wallet_full::sweep_output
std::shared_ptr< monero_tx_wallet > sweep_output(const monero_tx_config &config) override
Definition: monero_wallet_full.cpp:2185
monero::monero_wallet_full::get_integrated_address
monero_integrated_address get_integrated_address(const std::string &standard_address="", const std::string &payment_id="") const override
Definition: monero_wallet_full.cpp:1323
monero::monero_wallet_full::create_subaddress
monero_subaddress create_subaddress(uint32_t account_idx, const std::string &label="") override
Definition: monero_wallet_full.cpp:1587
monero::monero_wallet_full::is_synced
bool is_synced() const override
Definition: monero_wallet_full.cpp:1245
monero::monero_wallet_full::get_private_view_key
std::string get_private_view_key() const override
Definition: monero_wallet_full.cpp:1281
monero::monero_wallet_full::is_output_frozen
bool is_output_frozen(const std::string &key_image) override
Definition: monero_wallet_full.cpp:1834
monero::monero_wallet_full::create_account
monero_account create_account(const std::string &label="") override
Definition: monero_wallet_full.cpp:1563
monero::monero_wallet_full::open_wallet_data
static monero_wallet_full * open_wallet_data(const std::string &password, const monero_network_type, const std::string &keys_data, const std::string &cache_data, const monero_rpc_connection &daemon_connection=monero_rpc_connection(), std::unique_ptr< epee::net_utils::http::http_client_factory > http_client_factory=nullptr)
Definition: monero_wallet_full.cpp:1054
monero::monero_wallet_full::get_outputs
std::vector< std::shared_ptr< monero_output_wallet > > get_outputs(const monero_output_query &query) const override
Definition: monero_wallet_full.cpp:1741
monero::monero_wallet_full::add_listener
void add_listener(monero_wallet_listener &listener) override
Definition: monero_wallet_full.cpp:1402
monero::monero_wallet_full::decode_integrated_address
monero_integrated_address decode_integrated_address(const std::string &integrated_address) const override
Definition: monero_wallet_full.cpp:1353
monero::monero_wallet_full::remove_listener
void remove_listener(monero_wallet_listener &listener) override
Definition: monero_wallet_full.cpp:1408
monero::monero_wallet_full::submit_txs
std::vector< std::string > submit_txs(const std::string &signed_tx_hex) override
Definition: monero_wallet_full.cpp:2655
monero::monero_transfer_query
Definition: monero_wallet_model.h:183
monero::monero_wallet_full::sweep_unlocked
std::vector< std::shared_ptr< monero_tx_wallet > > sweep_unlocked(const monero_tx_config &config) override
Definition: monero_wallet_full.cpp:1985
monero::monero_wallet_full::change_password
void change_password(const std::string &old_password, const std::string &new_password) override
Definition: monero_wallet_full.cpp:3329
monero::monero_wallet_full::set_daemon_connection
void set_daemon_connection(const std::string &uri, const std::string &username="", const std::string &password="") override
Definition: monero_wallet_full.cpp:1185
monero::monero_multisig_init_result
Definition: monero_wallet_model.h:449
monero::monero_wallet_full::get_public_view_key
std::string get_public_view_key() const override
Definition: monero_wallet_full.cpp:1276
monero::monero_wallet_full::get_balance
uint64_t get_balance() const override
Definition: monero_wallet_full.cpp:1496
monero::monero_wallet::get_accounts
virtual std::vector< monero_account > get_accounts() const
Definition: monero_wallet.h:567
monero::monero_wallet_full::parse_payment_uri
std::shared_ptr< monero_tx_config > parse_payment_uri(const std::string &uri) const override
Definition: monero_wallet_full.cpp:3055
monero::monero_wallet_full::get_public_spend_key
std::string get_public_spend_key() const override
Definition: monero_wallet_full.cpp:1286
monero::monero_wallet_full::close
void close(bool save=false) override
Definition: monero_wallet_full.cpp:3361
monero::monero_wallet_full::sync
monero_sync_result sync() override
Definition: monero_wallet_full.cpp:1419
monero::monero_wallet_full::create_wallet_from_mnemonic
static monero_wallet_full * create_wallet_from_mnemonic(const std::string &path, const std::string &password, const monero_network_type network_type, const std::string &mnemonic, const monero_rpc_connection &daemon_connection=monero_rpc_connection(), uint64_t restore_height=0, const std::string &seed_offset="", std::unique_ptr< epee::net_utils::http::http_client_factory > http_client_factory=nullptr)
Definition: monero_wallet_full.cpp:1081
monero::monero_wallet_full::set_sync_height
void set_sync_height(uint64_t sync_height) override
Definition: monero_wallet_full.cpp:1377
monero::monero_wallet_full::wait_for_next_block
uint64_t wait_for_next_block() override
Definition: monero_wallet_full.cpp:3131
monero::monero_wallet_full::add_address_book_entry
uint64_t add_address_book_entry(const std::string &address, const std::string &description) override
Definition: monero_wallet_full.cpp:2976
monero::monero_wallet_full::freeze_output
void freeze_output(const std::string &key_image) override
Definition: monero_wallet_full.cpp:1820
monero::monero_wallet_full::sign_message
std::string sign_message(const std::string &msg, monero_message_signature_type signature_type, uint32_t account_idx=0, uint32_t subaddress_idx=0) const override
Definition: monero_wallet_full.cpp:2681
monero::monero_wallet_full::rescan_spent
void rescan_spent() override
Definition: monero_wallet_full.cpp:1479
monero::monero_wallet_full::get_address_index
monero_subaddress get_address_index(const std::string &address) const override
Definition: monero_wallet_full.cpp:1302
monero::monero_wallet_full::sign_txs
std::string sign_txs(const std::string &unsigned_tx_hex) override
Definition: monero_wallet_full.cpp:2633
monero::monero_wallet_full::get_mnemonic_languages
static std::vector< std::string > get_mnemonic_languages()
Definition: monero_wallet_full.cpp:1172
monero::monero_wallet_full::make_multisig
std::string make_multisig(const std::vector< std::string > &multisig_hexes, int threshold, const std::string &password) override
Definition: monero_wallet_full.cpp:3180
monero::monero_wallet_full::set_tx_note
void set_tx_note(const std::string &tx_hash, const std::string &note) override
Definition: monero_wallet_full.cpp:2926
monero::monero_message_signature_type
monero_message_signature_type
Definition: monero_wallet_model.h:385
monero::monero_wallet_full::export_key_images
std::vector< std::shared_ptr< monero_key_image > > export_key_images(bool all=false) const override
Definition: monero_wallet_full.cpp:1778
monero::monero_wallet_full::stop_mining
void stop_mining() override
Definition: monero_wallet_full.cpp:3121
monero::wallet2_listener
Definition: monero_wallet_full.cpp:698
monero::monero_wallet_full::get_reserve_proof_wallet
std::string get_reserve_proof_wallet(const std::string &message) const override
Definition: monero_wallet_full.cpp:2874
monero::monero_wallet_full::get_payment_uri
std::string get_payment_uri(const monero_tx_config &config) const override
Definition: monero_wallet_full.cpp:3032
monero::monero_rpc_connection
Definition: monero_daemon_model.h:109
monero::monero_wallet_full::get_txs
std::vector< std::shared_ptr< monero_tx_wallet > > get_txs() const override
Definition: monero_wallet_full.cpp:1607
monero::monero_wallet_full::is_daemon_synced
bool is_daemon_synced() const override
Definition: monero_wallet_full.cpp:1234
monero::monero_wallet_full::thaw_output
void thaw_output(const std::string &key_image) override
Definition: monero_wallet_full.cpp:1827
monero::monero_wallet_full::create_wallet_from_keys
static monero_wallet_full * create_wallet_from_keys(const std::string &path, const std::string &password, const monero_network_type network_type, const std::string &address, const std::string &view_key, const std::string &spend_key, const monero_rpc_connection &daemon_connection=monero_rpc_connection(), uint64_t restore_height=0, const std::string &language="English", std::unique_ptr< epee::net_utils::http::http_client_factory > http_client_factory=nullptr)
Definition: monero_wallet_full.cpp:1106
monero::monero_wallet_full::get_height_by_date
uint64_t get_height_by_date(uint16_t year, uint8_t month, uint8_t day) const override
Definition: monero_wallet_full.cpp:1398
monero::monero_version
Definition: monero_daemon_model.h:99
monero::monero_wallet_full::get_daemon_height
uint64_t get_daemon_height() const override
Definition: monero_wallet_full.cpp:1381
monero::monero_wallet_full::get_address_book_entries
std::vector< monero_address_book_entry > get_address_book_entries(const std::vector< uint64_t > &indices) const override
Definition: monero_wallet_full.cpp:2944
monero::monero_wallet_full::start_syncing
void start_syncing(uint64_t sync_period_in_ms) override
Definition: monero_wallet_full.cpp:1465
monero::monero_wallet_full::get_tx_notes
std::vector< std::string > get_tx_notes(const std::vector< std::string > &tx_hashes) const override
Definition: monero_wallet_full.cpp:2919
monero::monero_wallet_full::get_version
monero_version get_version() const override
Definition: monero_wallet_full.cpp:1249