Monero C++ Library
monero_wallet.h
1 
53 #pragma once
54 
55 #include "monero_wallet_model.h"
56 #include <vector>
57 #include <set>
58 
59 using namespace monero;
60 
64 namespace monero {
65 
66  // --------------------------------- LISTENERS ------------------------------
67 
72  public:
73 
83  virtual void on_sync_progress(uint64_t height, uint64_t start_height, uint64_t end_height, double percent_done, const std::string& message) {}
84 
90  virtual void on_new_block(uint64_t height) {};
91 
98  virtual void on_balances_changed(uint64_t new_balance, uint64_t new_unlocked_balance) {};
99 
105  virtual void on_output_received(const monero_output_wallet& output) {};
106 
112  virtual void on_output_spent(const monero_output_wallet& output) {};
113  };
114 
115  // forward declaration of internal wallet2 listener
116  struct wallet2_listener;
117 
118  // ----------------------------- WALLET METHODS -----------------------------
119 
124 
125  public:
126 
130  virtual ~monero_wallet() {}
131 
138  virtual bool is_view_only() const {
139  throw std::runtime_error("is_view_only() not supported");
140  }
141 
149  virtual void set_daemon_connection(const std::string& uri, const std::string& username = "", const std::string& password = "") {
150  throw std::runtime_error("set_daemon_connection() not supported");
151  }
152 
158  virtual void set_daemon_connection(const boost::optional<monero_rpc_connection>& connection) {
159  throw std::runtime_error("set_daemon_connection() not supported");
160  }
161 
167  virtual boost::optional<monero_rpc_connection> get_daemon_connection() const {
168  throw std::runtime_error("get_daemon_connection() not supported");
169  }
170 
176  virtual bool is_connected() const {
177  throw std::runtime_error("is_connected() not supported");
178  }
179 
185  virtual bool is_daemon_synced() const {
186  throw std::runtime_error("is_daemon_synced() not supported");
187  }
188 
194  virtual bool is_daemon_trusted() const {
195  throw std::runtime_error("is_daemon_trusted() not supported");
196  }
197 
203  virtual bool is_synced() const {
204  throw std::runtime_error("is_synced() not supported");
205  }
206 
212  virtual monero_version get_version() const {
213  throw std::runtime_error("get_version() not supported");
214  }
215 
221  virtual std::string get_path() const {
222  throw std::runtime_error("get_path() not supported");
223  }
224 
231  throw std::runtime_error("get_network_type() not supported");
232  }
233 
239  virtual std::string get_mnemonic() const {
240  throw std::runtime_error("get_mnemonic() not supported");
241  }
242 
248  virtual std::string get_mnemonic_language() const {
249  throw std::runtime_error("get_mnemonic_language() not supported");
250  }
251 
257  virtual std::string get_public_view_key() const {
258  throw std::runtime_error("get_public_view_key() not supported");
259  }
260 
266  virtual std::string get_private_view_key() const {
267  throw std::runtime_error("get_private_view_key() not supported");
268  }
269 
275  virtual std::string get_public_spend_key() const {
276  throw std::runtime_error("get_public_spend_key() not supported");
277  }
278 
284  virtual std::string get_private_spend_key() const {
285  throw std::runtime_error("get_private_spend_key() not supported");
286  }
287 
293  virtual std::string get_primary_address() const {
294  return get_address(0, 0);
295  }
296 
304  virtual std::string get_address(const uint32_t account_idx, const uint32_t subaddress_idx) const {
305  throw std::runtime_error("get_address() not supported");
306  }
307 
315  virtual monero_subaddress get_address_index(const std::string& address) const {
316  throw std::runtime_error("get_address_index() not supported");
317  }
318 
326  virtual monero_integrated_address get_integrated_address(const std::string& standard_address = "", const std::string& payment_id = "") const {
327  throw std::runtime_error("get_integrated_address() not supported");
328  }
329 
336  virtual monero_integrated_address decode_integrated_address(const std::string& integrated_address) const {
337  throw std::runtime_error("decode_integrated_address() not supported");
338  }
339 
345  virtual uint64_t get_height() const {
346  throw std::runtime_error("get_height() not supported");
347  }
348 
354  virtual uint64_t get_sync_height() const {
355  throw std::runtime_error("get_sync_height() not supported");
356  }
357 
363  virtual void set_sync_height(uint64_t sync_height) {
364  throw std::runtime_error("set_sync_height() not supported");
365  }
366 
372  virtual uint64_t get_daemon_height() const {
373  throw std::runtime_error("get_daemon_height() not supported");
374  }
375 
381  virtual uint64_t get_daemon_max_peer_height() const {
382  throw std::runtime_error("get_daemon_max_peer_height() not supported");
383  }
384 
393  virtual uint64_t get_height_by_date(uint16_t year, uint8_t month, uint8_t day) const {
394  throw std::runtime_error("get_height_by_date(year, month, day) not supported");
395  }
396 
402  virtual void add_listener(monero_wallet_listener& listener) {
403  throw std::runtime_error("add_listener() not supported");
404  }
405 
411  virtual void remove_listener(monero_wallet_listener& listener) {
412  throw std::runtime_error("remove_listener() not supported");
413  }
414 
418  virtual std::set<monero_wallet_listener*> get_listeners() {
419  throw std::runtime_error("get_listeners() not supported");
420  }
421 
428  throw std::runtime_error("sync() not supported");
429  }
430 
438  throw std::runtime_error("sync() not supported");
439  }
440 
447  virtual monero_sync_result sync(uint64_t start_height) {
448  throw std::runtime_error("sync() not supported");
449  }
450 
458  virtual monero_sync_result sync(uint64_t start_height, monero_wallet_listener& listener) {
459  throw std::runtime_error("sync() not supported");
460  }
461 
465  virtual void start_syncing() {
466  throw std::runtime_error("start_syncing() not supported");
467  }
468 
472  virtual void stop_syncing() {
473  throw std::runtime_error("stop_syncing() not supported");
474  }
475 
485  virtual void rescan_spent() {
486  throw std::runtime_error("rescan_spent() not supported");
487  }
488 
496  virtual void rescan_blockchain() {
497  throw std::runtime_error("rescan_blockchain() not supported");
498  }
499 
505  virtual uint64_t get_balance() const {
506  throw std::runtime_error("get_balance() not supported");
507  }
508 
515  virtual uint64_t get_balance(uint32_t account_idx) const {
516  throw std::runtime_error("get_balance() not supported");
517  }
518 
526  virtual uint64_t get_balance(uint32_t account_idx, uint32_t subaddress_idx) const {
527  throw std::runtime_error("get_balance() not supported");
528  }
529 
535  virtual uint64_t get_unlocked_balance() const {
536  throw std::runtime_error("get_unlocked_balance() not supported");
537  }
538 
545  virtual uint64_t get_unlocked_balance(uint32_t account_idx) const {
546  throw std::runtime_error("get_unlocked_balance() not supported");
547  }
548 
556  virtual uint64_t get_unlocked_balance(uint32_t account_idx, uint32_t subaddress_idx) const {
557  throw std::runtime_error("get_unlocked_balance() not supported");
558  }
559 
565  virtual std::vector<monero_account> get_accounts() const {
566  return get_accounts(false, std::string(""));
567  }
568 
575  virtual std::vector<monero_account> get_accounts(bool include_subaddresses) const {
576  return get_accounts(include_subaddresses, "");
577  }
578 
585  virtual std::vector<monero_account> get_accounts(const std::string& tag) const {
586  return get_accounts(false, tag);
587  }
588 
596  virtual std::vector<monero_account> get_accounts(bool include_subaddresses, const std::string& tag) const {
597  throw std::runtime_error("get_accounts() not supported");
598  }
599 
606  virtual monero_account get_account(uint32_t account_idx) const {
607  return get_account(account_idx, false);
608  }
609 
617  virtual monero_account get_account(const uint32_t account_idx, bool include_subaddresses) const {
618  throw std::runtime_error("get_account() not supported");
619  }
620 
627  virtual monero_account create_account(const std::string& label = "") {
628  throw std::runtime_error("create_account() not supported");
629  }
630 
637  virtual std::vector<monero_subaddress> get_subaddresses(const uint32_t account_idx) const {
638  return get_subaddresses(account_idx, std::vector<uint32_t>());
639  }
640 
648  virtual std::vector<monero_subaddress> get_subaddresses(const uint32_t account_idx, const std::vector<uint32_t>& subaddress_indices) const {
649  throw std::runtime_error("get_subaddresses() not supported");
650  }
651 
659  virtual monero_subaddress get_subaddress(const uint32_t account_idx, const uint32_t subaddress_idx) const {
660  throw std::runtime_error("get_subaddress() not supported");
661  }
662 
670  virtual monero_subaddress create_subaddress(uint32_t account_idx, const std::string& label = "") {
671  throw std::runtime_error("create_subaddress() not supported");
672  }
673 
680  virtual std::vector<std::shared_ptr<monero_tx_wallet>> get_txs() const {
681  throw std::runtime_error("get_txs() not supported");
682  }
683 
696  virtual std::vector<std::shared_ptr<monero_tx_wallet>> get_txs(const monero_tx_query& query) const {
697  throw std::runtime_error("get_txs(query) not supported");
698  }
699 
708  virtual std::vector<std::shared_ptr<monero_tx_wallet>> get_txs(const monero_tx_query& query, std::vector<std::string>& missing_tx_hashes) const {
709  throw std::runtime_error("get_txs(query, missing_tx_hashes) not supported");
710  }
711 
728  virtual std::vector<std::shared_ptr<monero_transfer>> get_transfers(const monero_transfer_query& query) const {
729  throw std::runtime_error("get_transfers() not supported");
730  }
731 
744  virtual std::vector<std::shared_ptr<monero_output_wallet>> get_outputs(const monero_output_query& query) const {
745  throw std::runtime_error("get_outputs() not supported");
746  }
747 
753  virtual std::string get_outputs_hex() const {
754  throw std::runtime_error("get_outputs_hex() not supported");
755  }
756 
763  virtual int import_outputs_hex(const std::string& outputs_hex) {
764  throw std::runtime_error("import_outputs_hex() not supported");
765  }
766 
772  virtual std::vector<std::shared_ptr<monero_key_image>> get_key_images() const {
773  throw std::runtime_error("get_key_images() not supported");
774  }
775 
782  virtual std::shared_ptr<monero_key_image_import_result> import_key_images(const std::vector<std::shared_ptr<monero_key_image>>& key_images) {
783  throw std::runtime_error("import_key_images() not supported");
784  }
785 
792  virtual std::shared_ptr<monero_tx_wallet> create_tx(const monero_tx_config& config) {
793  if (config.m_can_split != boost::none && config.m_can_split.get()) throw std::runtime_error("Cannot split transactions with create_tx(); use create_txs() instead");
794  monero_tx_config config_copy = monero_tx_config(config);
795  config_copy.m_can_split = false;
796  return create_txs(config_copy)[0];
797  }
798 
805  virtual std::vector<std::shared_ptr<monero_tx_wallet>> create_txs(const monero_tx_config& config) {
806  throw std::runtime_error("create_txs() not supported");
807  }
808 
815  virtual std::vector<std::shared_ptr<monero_tx_wallet>> sweep_unlocked(const monero_tx_config& config) {
816  throw std::runtime_error("sweep_unlocked() not supported");
817  }
818 
825  virtual std::shared_ptr<monero_tx_wallet> sweep_output(const monero_tx_config& config) {
826  throw std::runtime_error("sweep_output() not supported");
827  }
828 
835  virtual std::vector<std::shared_ptr<monero_tx_wallet>> sweep_dust(bool relay = false) {
836  throw std::runtime_error("sweep_dust() not supported");
837  }
838 
845  virtual std::string relay_tx(const std::string& tx_metadata) {
846  std::vector<std::string> tx_metadatas;
847  tx_metadatas.push_back(tx_metadata);
848  return relay_txs(tx_metadatas)[0];
849  }
850 
857  virtual std::string relay_tx(const monero_tx_wallet& tx) {
858  return relay_tx(tx.m_metadata.get());
859  }
860 
867  virtual std::vector<std::string> relay_txs(const std::vector<std::shared_ptr<monero_tx_wallet>>& txs) {
868  std::vector<std::string> tx_hexes;
869  for (const std::shared_ptr<monero_tx_wallet>& tx : txs) tx_hexes.push_back(tx->m_metadata.get());
870  return relay_txs(tx_hexes);
871  }
872 
879  virtual std::vector<std::string> relay_txs(const std::vector<std::string>& tx_metadatas) {
880  throw std::runtime_error("relay_txs() not supported");
881  }
882 
889  virtual monero_tx_set parse_tx_set(const monero_tx_set& tx_set) {
890  throw std::runtime_error("parse_tx_set() not supported");
891  }
892 
899  virtual std::string sign_txs(const std::string& unsigned_tx_hex) {
900  throw std::runtime_error("sign_txs() not supported");
901  }
902 
909  virtual std::vector<std::string> submit_txs(const std::string& signed_tx_hex) {
910  throw std::runtime_error("submit_txs() not supported");
911  }
912 
919  virtual std::string sign_message(const std::string& msg) const {
920  throw std::runtime_error("sign_message() not supported");
921  }
922 
931  virtual bool verify_message(const std::string& msg, const std::string& address, const std::string& signature) const {
932  throw std::runtime_error("verify_message() not supported");
933  }
934 
941  virtual std::string get_tx_key(const std::string& tx_hash) const {
942  throw std::runtime_error("get_tx_key() not supported");
943  }
944 
953  virtual std::shared_ptr<monero_check_tx> check_tx_key(const std::string& tx_hash, const std::string& tx_key, const std::string& address) const {
954  throw std::runtime_error("check_tx_key() not supported");
955  }
956 
965  virtual std::string get_tx_proof(const std::string& tx_hash, const std::string& address, const std::string& message) const {
966  throw std::runtime_error("get_tx_proof() not supported");
967  }
968 
978  virtual 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 {
979  throw std::runtime_error("check_tx_proof() not supported");
980  }
981 
989  virtual std::string get_spend_proof(const std::string& tx_hash, const std::string& message) const {
990  throw std::runtime_error("get_spend_proof() not supported");
991  }
992 
1001  virtual bool check_spend_proof(const std::string& tx_hash, const std::string& message, const std::string& signature) const {
1002  throw std::runtime_error("check_spend_proof() not supported");
1003  }
1004 
1011  virtual std::string get_reserve_proof_wallet(const std::string& message) const {
1012  throw std::runtime_error("get_reserve_proof_wallet() not supported");
1013  }
1014 
1023  virtual std::string get_reserve_proof_account(uint32_t account_idx, uint64_t amount, const std::string& message) const {
1024  throw std::runtime_error("get_reserve_proof_account() not supported");
1025  }
1026 
1035  virtual std::shared_ptr<monero_check_reserve> check_reserve_proof(const std::string& address, const std::string& message, const std::string& signature) const {
1036  throw std::runtime_error("check_reserve_proof() not supported");
1037  }
1038 
1045  virtual std::string get_tx_note(const std::string& tx_hash) const {
1046  throw std::runtime_error("get_tx_note() not supported");
1047  }
1048 
1055  virtual std::vector<std::string> get_tx_notes(const std::vector<std::string>& tx_hashes) const {
1056  throw std::runtime_error("get_tx_notes() not supported");
1057  }
1058 
1065  virtual void set_tx_note(const std::string& tx_hash, const std::string& note) {
1066  throw std::runtime_error("set_tx_note() not supported");
1067  }
1068 
1075  virtual void set_tx_notes(const std::vector<std::string>& tx_hashes, const std::vector<std::string>& notes) {
1076  throw std::runtime_error("set_tx_notes() not supported");
1077  }
1078 
1085  virtual std::vector<monero_address_book_entry> get_address_book_entries(const std::vector<uint64_t>& indices) const {
1086  throw std::runtime_error("get_address_book_entries() not supported");
1087  }
1088 
1096  virtual uint64_t add_address_book_entry(const std::string& address, const std::string& description) {
1097  throw std::runtime_error("add_address_book_entry() not supported");
1098  }
1099 
1109  virtual void edit_address_book_entry(uint64_t index, bool set_address, const std::string& address, bool set_description, const std::string& description) {
1110  throw std::runtime_error("edit_address_book_entry() not supported");
1111  }
1112 
1118  virtual void delete_address_book_entry(uint64_t index) {
1119  throw std::runtime_error("delete_address_book_entry() not supported");
1120  }
1121 
1128  virtual std::string create_payment_uri(const monero_tx_config& config) const {
1129  throw std::runtime_error("create_payment_uri() not supported");
1130  }
1131 
1138  virtual std::shared_ptr<monero_tx_config> parse_payment_uri(const std::string& uri) const {
1139  throw std::runtime_error("parse_payment_uri() not supported");
1140  }
1141 
1149  virtual bool get_attribute(const std::string& key, std::string& value) const {
1150  throw std::runtime_error("get_attribute() not supported");
1151  }
1152 
1159  virtual void set_attribute(const std::string& key, const std::string& val) {
1160  throw std::runtime_error("set_attribute() not supported");
1161  }
1162 
1170  virtual void start_mining(boost::optional<uint64_t> num_threads, boost::optional<bool> background_mining, boost::optional<bool> ignore_battery) {
1171  throw std::runtime_error("start_mining() not supported");
1172  }
1173 
1177  virtual void stop_mining() {
1178  throw std::runtime_error("stop_mining() not supported");
1179  }
1180 
1186  virtual uint64_t wait_for_next_block() {
1187  throw std::runtime_error("wait_for_next_block() not supported");
1188  }
1189 
1195  virtual bool is_multisig_import_needed() const {
1196  throw std::runtime_error("is_multisig_import_needed() not supported");
1197  }
1198 
1199  // TODO: bool is_multisig()
1200 
1207  throw std::runtime_error("get_multisig_info() not supported");
1208  }
1209 
1216  virtual std::string prepare_multisig() {
1217  throw std::runtime_error("prepare_multisig() not supported");
1218  }
1219 
1228  virtual monero_multisig_init_result make_multisig(const std::vector<std::string>& multisig_hexes, int threshold, const std::string& password) {
1229  throw std::runtime_error("make_multisig() not supported");
1230  }
1231 
1241  virtual monero_multisig_init_result exchange_multisig_keys(const std::vector<std::string>& mutisig_hexes, const std::string& password) {
1242  throw std::runtime_error("exchange_multisig_keys() not supported");
1243  }
1244 
1250  virtual std::string get_multisig_hex() {
1251  throw std::runtime_error("get_multisig_hex() not supported");
1252  }
1253 
1264  virtual int import_multisig_hex(const std::vector<std::string>& multisig_hexes) {
1265  throw std::runtime_error("import_multisig_hex() not supported");
1266  }
1267 
1274  virtual monero_multisig_sign_result sign_multisig_tx_hex(const std::string& multisig_tx_hex) {
1275  throw std::runtime_error("monero_multisig_sign_result() not supported");
1276  }
1277 
1284  virtual std::vector<std::string> submit_multisig_tx_hex(const std::string& signed_multisig_tx_hex) {
1285  throw std::runtime_error("submit_multisig_tx_hex() not supported");
1286  }
1287 
1291  virtual void save() {
1292  throw std::runtime_error("save() not supported");
1293  }
1294 
1301  virtual void move_to(std::string path, std::string password) {
1302  throw std::runtime_error("move_to() not supported");
1303  }
1304 
1310  virtual void close(bool save = false) {
1311  throw std::runtime_error("close() not supported");
1312  }
1313  };
1314 }
monero::monero_wallet::get_subaddresses
virtual std::vector< monero_subaddress > get_subaddresses(const uint32_t account_idx, const std::vector< uint32_t > &subaddress_indices) const
Definition: monero_wallet.h:648
monero::monero_wallet::get_tx_proof
virtual std::string get_tx_proof(const std::string &tx_hash, const std::string &address, const std::string &message) const
Definition: monero_wallet.h:965
monero::monero_wallet::exchange_multisig_keys
virtual monero_multisig_init_result exchange_multisig_keys(const std::vector< std::string > &mutisig_hexes, const std::string &password)
Definition: monero_wallet.h:1241
monero::monero_wallet::import_key_images
virtual std::shared_ptr< monero_key_image_import_result > import_key_images(const std::vector< std::shared_ptr< monero_key_image >> &key_images)
Definition: monero_wallet.h:782
monero::monero_tx_set
Definition: monero_wallet_model.h:308
monero::monero_wallet::is_view_only
virtual bool is_view_only() const
Definition: monero_wallet.h:138
monero::monero_wallet::get_daemon_height
virtual uint64_t get_daemon_height() const
Definition: monero_wallet.h:372
monero::monero_wallet::get_network_type
virtual monero_network_type get_network_type() const
Definition: monero_wallet.h:230
monero::monero_wallet::get_multisig_info
virtual monero_multisig_info get_multisig_info()
Definition: monero_wallet.h:1206
monero::monero_wallet::get_balance
virtual uint64_t get_balance(uint32_t account_idx, uint32_t subaddress_idx) const
Definition: monero_wallet.h:526
monero::monero_wallet::create_txs
virtual std::vector< std::shared_ptr< monero_tx_wallet > > create_txs(const monero_tx_config &config)
Definition: monero_wallet.h:805
monero
Definition: monero_daemon.cpp:58
monero::monero_wallet::import_multisig_hex
virtual int import_multisig_hex(const std::vector< std::string > &multisig_hexes)
Definition: monero_wallet.h:1264
monero::monero_wallet::sync
virtual monero_sync_result sync(uint64_t start_height)
Definition: monero_wallet.h:447
monero::monero_wallet::sweep_output
virtual std::shared_ptr< monero_tx_wallet > sweep_output(const monero_tx_config &config)
Definition: monero_wallet.h:825
monero::monero_wallet::check_reserve_proof
virtual std::shared_ptr< monero_check_reserve > check_reserve_proof(const std::string &address, const std::string &message, const std::string &signature) const
Definition: monero_wallet.h:1035
monero::monero_wallet::get_balance
virtual uint64_t get_balance(uint32_t account_idx) const
Definition: monero_wallet.h:515
monero::monero_wallet::get_sync_height
virtual uint64_t get_sync_height() const
Definition: monero_wallet.h:354
monero::monero_wallet::sync
virtual monero_sync_result sync()
Definition: monero_wallet.h:427
monero::monero_tx_query
Definition: monero_wallet_model.h:278
monero::monero_tx_wallet
Definition: monero_wallet_model.h:244
monero::monero_wallet::check_tx_key
virtual std::shared_ptr< monero_check_tx > check_tx_key(const std::string &tx_hash, const std::string &tx_key, const std::string &address) const
Definition: monero_wallet.h:953
monero::monero_wallet::create_subaddress
virtual monero_subaddress create_subaddress(uint32_t account_idx, const std::string &label="")
Definition: monero_wallet.h:670
monero::monero_wallet::get_txs
virtual std::vector< std::shared_ptr< monero_tx_wallet > > get_txs(const monero_tx_query &query) const
Definition: monero_wallet.h:696
monero::monero_wallet::is_daemon_trusted
virtual bool is_daemon_trusted() const
Definition: monero_wallet.h:194
monero::monero_wallet::sweep_dust
virtual std::vector< std::shared_ptr< monero_tx_wallet > > sweep_dust(bool relay=false)
Definition: monero_wallet.h:835
monero::monero_account
Definition: monero_wallet_model.h:96
monero::monero_multisig_info
Definition: monero_wallet_model.h:414
monero::monero_wallet::move_to
virtual void move_to(std::string path, std::string password)
Definition: monero_wallet.h:1301
monero::monero_wallet_listener
Definition: monero_wallet.h:71
monero::monero_wallet::get_account
virtual monero_account get_account(const uint32_t account_idx, bool include_subaddresses) const
Definition: monero_wallet.h:617
monero::monero_multisig_sign_result
Definition: monero_wallet_model.h:438
monero::monero_wallet::rescan_spent
virtual void rescan_spent()
Definition: monero_wallet.h:485
monero::monero_wallet::get_address
virtual std::string get_address(const uint32_t account_idx, const uint32_t subaddress_idx) const
Definition: monero_wallet.h:304
monero::monero_wallet::get_mnemonic_language
virtual std::string get_mnemonic_language() const
Definition: monero_wallet.h:248
monero::monero_wallet::get_height
virtual uint64_t get_height() const
Definition: monero_wallet.h:345
monero::monero_wallet::prepare_multisig
virtual std::string prepare_multisig()
Definition: monero_wallet.h:1216
monero::monero_wallet_listener::on_sync_progress
virtual void on_sync_progress(uint64_t height, uint64_t start_height, uint64_t end_height, double percent_done, const std::string &message)
Definition: monero_wallet.h:83
monero::monero_wallet::import_outputs_hex
virtual int import_outputs_hex(const std::string &outputs_hex)
Definition: monero_wallet.h:763
monero::monero_wallet::get_attribute
virtual bool get_attribute(const std::string &key, std::string &value) const
Definition: monero_wallet.h:1149
monero::monero_wallet::get_subaddress
virtual monero_subaddress get_subaddress(const uint32_t account_idx, const uint32_t subaddress_idx) const
Definition: monero_wallet.h:659
monero::monero_wallet::is_multisig_import_needed
virtual bool is_multisig_import_needed() const
Definition: monero_wallet.h:1195
monero::monero_wallet::sign_txs
virtual std::string sign_txs(const std::string &unsigned_tx_hex)
Definition: monero_wallet.h:899
monero::monero_wallet::get_subaddresses
virtual std::vector< monero_subaddress > get_subaddresses(const uint32_t account_idx) const
Definition: monero_wallet.h:637
monero::monero_wallet::get_spend_proof
virtual std::string get_spend_proof(const std::string &tx_hash, const std::string &message) const
Definition: monero_wallet.h:989
monero::monero_wallet::is_synced
virtual bool is_synced() const
Definition: monero_wallet.h:203
monero::monero_wallet::decode_integrated_address
virtual monero_integrated_address decode_integrated_address(const std::string &integrated_address) const
Definition: monero_wallet.h:336
monero::monero_wallet::get_outputs
virtual std::vector< std::shared_ptr< monero_output_wallet > > get_outputs(const monero_output_query &query) const
Definition: monero_wallet.h:744
monero::monero_wallet::get_outputs_hex
virtual std::string get_outputs_hex() const
Definition: monero_wallet.h:753
monero::monero_tx_config
Definition: monero_wallet_model.h:343
monero::monero_wallet::sign_message
virtual std::string sign_message(const std::string &msg) const
Definition: monero_wallet.h:919
monero::monero_wallet_listener::on_output_received
virtual void on_output_received(const monero_output_wallet &output)
Definition: monero_wallet.h:105
monero::monero_wallet::get_private_spend_key
virtual std::string get_private_spend_key() const
Definition: monero_wallet.h:284
monero::monero_wallet::start_syncing
virtual void start_syncing()
Definition: monero_wallet.h:465
monero::monero_wallet::start_mining
virtual void start_mining(boost::optional< uint64_t > num_threads, boost::optional< bool > background_mining, boost::optional< bool > ignore_battery)
Definition: monero_wallet.h:1170
monero::monero_wallet::get_height_by_date
virtual uint64_t get_height_by_date(uint16_t year, uint8_t month, uint8_t day) const
Definition: monero_wallet.h:393
monero::monero_wallet
Definition: monero_wallet.h:123
monero::monero_wallet::get_transfers
virtual std::vector< std::shared_ptr< monero_transfer > > get_transfers(const monero_transfer_query &query) const
Definition: monero_wallet.h:728
monero::monero_output_query
Definition: monero_wallet_model.h:225
monero::monero_subaddress
Definition: monero_wallet_model.h:79
monero::monero_wallet::get_accounts
virtual std::vector< monero_account > get_accounts(bool include_subaddresses, const std::string &tag) const
Definition: monero_wallet.h:596
monero::monero_wallet::set_tx_notes
virtual void set_tx_notes(const std::vector< std::string > &tx_hashes, const std::vector< std::string > &notes)
Definition: monero_wallet.h:1075
monero::monero_network_type
monero_network_type
Definition: monero_daemon_model.h:90
monero::monero_wallet::stop_mining
virtual void stop_mining()
Definition: monero_wallet.h:1177
monero::monero_sync_result
Definition: monero_wallet_model.h:67
monero::monero_wallet::check_tx_proof
virtual 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
Definition: monero_wallet.h:978
monero::monero_wallet::relay_txs
virtual std::vector< std::string > relay_txs(const std::vector< std::shared_ptr< monero_tx_wallet >> &txs)
Definition: monero_wallet.h:867
monero::monero_wallet::get_tx_note
virtual std::string get_tx_note(const std::string &tx_hash) const
Definition: monero_wallet.h:1045
monero::monero_wallet::relay_tx
virtual std::string relay_tx(const monero_tx_wallet &tx)
Definition: monero_wallet.h:857
monero::monero_wallet::set_tx_note
virtual void set_tx_note(const std::string &tx_hash, const std::string &note)
Definition: monero_wallet.h:1065
monero::monero_wallet::verify_message
virtual bool verify_message(const std::string &msg, const std::string &address, const std::string &signature) const
Definition: monero_wallet.h:931
monero::monero_wallet_listener::on_balances_changed
virtual void on_balances_changed(uint64_t new_balance, uint64_t new_unlocked_balance)
Definition: monero_wallet.h:98
monero::monero_wallet::get_unlocked_balance
virtual uint64_t get_unlocked_balance(uint32_t account_idx, uint32_t subaddress_idx) const
Definition: monero_wallet.h:556
monero::monero_wallet::create_payment_uri
virtual std::string create_payment_uri(const monero_tx_config &config) const
Definition: monero_wallet.h:1128
monero::monero_wallet::sync
virtual monero_sync_result sync(uint64_t start_height, monero_wallet_listener &listener)
Definition: monero_wallet.h:458
monero::monero_wallet::sweep_unlocked
virtual std::vector< std::shared_ptr< monero_tx_wallet > > sweep_unlocked(const monero_tx_config &config)
Definition: monero_wallet.h:815
monero::monero_wallet::set_attribute
virtual void set_attribute(const std::string &key, const std::string &val)
Definition: monero_wallet.h:1159
monero::monero_wallet::relay_tx
virtual std::string relay_tx(const std::string &tx_metadata)
Definition: monero_wallet.h:845
monero::monero_integrated_address
Definition: monero_wallet_model.h:322
monero::monero_wallet::submit_multisig_tx_hex
virtual std::vector< std::string > submit_multisig_tx_hex(const std::string &signed_multisig_tx_hex)
Definition: monero_wallet.h:1284
monero::monero_wallet_listener::on_output_spent
virtual void on_output_spent(const monero_output_wallet &output)
Definition: monero_wallet.h:112
monero::monero_wallet::get_tx_notes
virtual std::vector< std::string > get_tx_notes(const std::vector< std::string > &tx_hashes) const
Definition: monero_wallet.h:1055
monero::monero_wallet::get_version
virtual monero_version get_version() const
Definition: monero_wallet.h:212
monero::monero_wallet::get_private_view_key
virtual std::string get_private_view_key() const
Definition: monero_wallet.h:266
monero::monero_wallet::get_unlocked_balance
virtual uint64_t get_unlocked_balance(uint32_t account_idx) const
Definition: monero_wallet.h:545
monero::monero_wallet::make_multisig
virtual monero_multisig_init_result make_multisig(const std::vector< std::string > &multisig_hexes, int threshold, const std::string &password)
Definition: monero_wallet.h:1228
monero::monero_wallet::get_primary_address
virtual std::string get_primary_address() const
Definition: monero_wallet.h:293
monero::monero_wallet::set_sync_height
virtual void set_sync_height(uint64_t sync_height)
Definition: monero_wallet.h:363
monero::monero_transfer_query
Definition: monero_wallet_model.h:183
monero::monero_wallet::get_accounts
virtual std::vector< monero_account > get_accounts(bool include_subaddresses) const
Definition: monero_wallet.h:575
monero::monero_wallet::delete_address_book_entry
virtual void delete_address_book_entry(uint64_t index)
Definition: monero_wallet.h:1118
monero::monero_wallet::get_address_book_entries
virtual std::vector< monero_address_book_entry > get_address_book_entries(const std::vector< uint64_t > &indices) const
Definition: monero_wallet.h:1085
monero::monero_wallet::stop_syncing
virtual void stop_syncing()
Definition: monero_wallet.h:472
monero::monero_wallet::parse_payment_uri
virtual std::shared_ptr< monero_tx_config > parse_payment_uri(const std::string &uri) const
Definition: monero_wallet.h:1138
monero::monero_wallet::get_unlocked_balance
virtual uint64_t get_unlocked_balance() const
Definition: monero_wallet.h:535
monero::monero_output_wallet
Definition: monero_wallet_model.h:205
monero::monero_wallet::get_path
virtual std::string get_path() const
Definition: monero_wallet.h:221
monero::monero_multisig_init_result
Definition: monero_wallet_model.h:428
monero::monero_wallet::get_multisig_hex
virtual std::string get_multisig_hex()
Definition: monero_wallet.h:1250
monero::monero_wallet::~monero_wallet
virtual ~monero_wallet()
Definition: monero_wallet.h:130
monero::monero_wallet::get_integrated_address
virtual monero_integrated_address get_integrated_address(const std::string &standard_address="", const std::string &payment_id="") const
Definition: monero_wallet.h:326
monero::monero_wallet::wait_for_next_block
virtual uint64_t wait_for_next_block()
Definition: monero_wallet.h:1186
monero::monero_wallet::get_txs
virtual std::vector< std::shared_ptr< monero_tx_wallet > > get_txs() const
Definition: monero_wallet.h:680
monero::monero_wallet::get_account
virtual monero_account get_account(uint32_t account_idx) const
Definition: monero_wallet.h:606
monero::monero_wallet::get_daemon_connection
virtual boost::optional< monero_rpc_connection > get_daemon_connection() const
Definition: monero_wallet.h:167
monero::monero_wallet::close
virtual void close(bool save=false)
Definition: monero_wallet.h:1310
monero::monero_wallet::get_accounts
virtual std::vector< monero_account > get_accounts() const
Definition: monero_wallet.h:565
monero::monero_wallet::edit_address_book_entry
virtual void edit_address_book_entry(uint64_t index, bool set_address, const std::string &address, bool set_description, const std::string &description)
Definition: monero_wallet.h:1109
monero::monero_wallet::set_daemon_connection
virtual void set_daemon_connection(const boost::optional< monero_rpc_connection > &connection)
Definition: monero_wallet.h:158
monero::monero_wallet::add_listener
virtual void add_listener(monero_wallet_listener &listener)
Definition: monero_wallet.h:402
monero::monero_wallet::get_address_index
virtual monero_subaddress get_address_index(const std::string &address) const
Definition: monero_wallet.h:315
monero::monero_wallet::check_spend_proof
virtual bool check_spend_proof(const std::string &tx_hash, const std::string &message, const std::string &signature) const
Definition: monero_wallet.h:1001
monero::monero_wallet::get_tx_key
virtual std::string get_tx_key(const std::string &tx_hash) const
Definition: monero_wallet.h:941
monero::monero_wallet::parse_tx_set
virtual monero_tx_set parse_tx_set(const monero_tx_set &tx_set)
Definition: monero_wallet.h:889
monero::monero_wallet::get_listeners
virtual std::set< monero_wallet_listener * > get_listeners()
Definition: monero_wallet.h:418
monero::monero_wallet::set_daemon_connection
virtual void set_daemon_connection(const std::string &uri, const std::string &username="", const std::string &password="")
Definition: monero_wallet.h:149
monero::monero_wallet::sync
virtual monero_sync_result sync(monero_wallet_listener &listener)
Definition: monero_wallet.h:437
monero::monero_wallet::get_reserve_proof_account
virtual std::string get_reserve_proof_account(uint32_t account_idx, uint64_t amount, const std::string &message) const
Definition: monero_wallet.h:1023
monero::monero_wallet::get_reserve_proof_wallet
virtual std::string get_reserve_proof_wallet(const std::string &message) const
Definition: monero_wallet.h:1011
monero::wallet2_listener
Definition: monero_wallet_core.cpp:682
monero::monero_wallet::save
virtual void save()
Definition: monero_wallet.h:1291
monero::monero_wallet::get_public_view_key
virtual std::string get_public_view_key() const
Definition: monero_wallet.h:257
monero::monero_wallet::get_mnemonic
virtual std::string get_mnemonic() const
Definition: monero_wallet.h:239
monero::monero_wallet::rescan_blockchain
virtual void rescan_blockchain()
Definition: monero_wallet.h:496
monero::monero_wallet::get_txs
virtual std::vector< std::shared_ptr< monero_tx_wallet > > get_txs(const monero_tx_query &query, std::vector< std::string > &missing_tx_hashes) const
Definition: monero_wallet.h:708
monero::monero_wallet::get_accounts
virtual std::vector< monero_account > get_accounts(const std::string &tag) const
Definition: monero_wallet.h:585
monero::monero_wallet::get_public_spend_key
virtual std::string get_public_spend_key() const
Definition: monero_wallet.h:275
monero::monero_wallet::is_daemon_synced
virtual bool is_daemon_synced() const
Definition: monero_wallet.h:185
monero::monero_wallet::sign_multisig_tx_hex
virtual monero_multisig_sign_result sign_multisig_tx_hex(const std::string &multisig_tx_hex)
Definition: monero_wallet.h:1274
monero::monero_wallet_listener::on_new_block
virtual void on_new_block(uint64_t height)
Definition: monero_wallet.h:90
monero::monero_wallet::get_daemon_max_peer_height
virtual uint64_t get_daemon_max_peer_height() const
Definition: monero_wallet.h:381
monero::monero_wallet::add_address_book_entry
virtual uint64_t add_address_book_entry(const std::string &address, const std::string &description)
Definition: monero_wallet.h:1096
monero::monero_wallet::is_connected
virtual bool is_connected() const
Definition: monero_wallet.h:176
monero::monero_wallet::get_balance
virtual uint64_t get_balance() const
Definition: monero_wallet.h:505
monero::monero_version
Definition: monero_daemon_model.h:99
monero::monero_wallet::submit_txs
virtual std::vector< std::string > submit_txs(const std::string &signed_tx_hex)
Definition: monero_wallet.h:909
monero::monero_wallet::create_tx
virtual std::shared_ptr< monero_tx_wallet > create_tx(const monero_tx_config &config)
Definition: monero_wallet.h:792
monero::monero_wallet::get_key_images
virtual std::vector< std::shared_ptr< monero_key_image > > get_key_images() const
Definition: monero_wallet.h:772
monero::monero_wallet::remove_listener
virtual void remove_listener(monero_wallet_listener &listener)
Definition: monero_wallet.h:411
monero::monero_wallet::create_account
virtual monero_account create_account(const std::string &label="")
Definition: monero_wallet.h:627
monero::monero_wallet::relay_txs
virtual std::vector< std::string > relay_txs(const std::vector< std::string > &tx_metadatas)
Definition: monero_wallet.h:879