Monero C++ Library
|
#include <monero_wallet.h>
Public Member Functions | |
virtual | ~monero_wallet () |
virtual bool | is_view_only () const |
virtual void | set_daemon_connection (const std::string &uri, const std::string &username="", const std::string &password="") |
virtual void | set_daemon_connection (const boost::optional< monero_rpc_connection > &connection) |
virtual void | set_daemon_proxy (const std::string &uri="") |
virtual boost::optional< monero_rpc_connection > | get_daemon_connection () const |
virtual bool | is_connected_to_daemon () const |
virtual bool | is_daemon_synced () const |
virtual bool | is_daemon_trusted () const |
virtual bool | is_synced () const |
virtual monero_version | get_version () const |
virtual std::string | get_path () const |
virtual monero_network_type | get_network_type () const |
virtual std::string | get_seed () const |
virtual std::string | get_seed_language () const |
virtual std::string | get_public_view_key () const |
virtual std::string | get_private_view_key () const |
virtual std::string | get_public_spend_key () const |
virtual std::string | get_private_spend_key () const |
virtual std::string | get_primary_address () const |
virtual std::string | get_address (const uint32_t account_idx, const uint32_t subaddress_idx) const |
virtual monero_subaddress | get_address_index (const std::string &address) const |
virtual monero_integrated_address | get_integrated_address (const std::string &standard_address="", const std::string &payment_id="") const |
virtual monero_integrated_address | decode_integrated_address (const std::string &integrated_address) const |
virtual uint64_t | get_height () const |
virtual uint64_t | get_restore_height () const |
virtual void | set_restore_height (uint64_t restore_height) |
virtual uint64_t | get_daemon_height () const |
virtual uint64_t | get_daemon_max_peer_height () const |
virtual uint64_t | get_height_by_date (uint16_t year, uint8_t month, uint8_t day) const |
virtual void | add_listener (monero_wallet_listener &listener) |
virtual void | remove_listener (monero_wallet_listener &listener) |
virtual std::set< monero_wallet_listener * > | get_listeners () |
virtual monero_sync_result | sync () |
virtual monero_sync_result | sync (monero_wallet_listener &listener) |
virtual monero_sync_result | sync (uint64_t start_height) |
virtual monero_sync_result | sync (uint64_t start_height, monero_wallet_listener &listener) |
virtual void | start_syncing (uint64_t sync_period_in_ms=10000) |
virtual void | stop_syncing () |
virtual void | scan_txs (const std::vector< std::string > &tx_hashes) |
virtual void | rescan_spent () |
virtual void | rescan_blockchain () |
virtual uint64_t | get_balance () const |
virtual uint64_t | get_balance (uint32_t account_idx) const |
virtual uint64_t | get_balance (uint32_t account_idx, uint32_t subaddress_idx) const |
virtual uint64_t | get_unlocked_balance () const |
virtual uint64_t | get_unlocked_balance (uint32_t account_idx) const |
virtual uint64_t | get_unlocked_balance (uint32_t account_idx, uint32_t subaddress_idx) const |
virtual std::vector< monero_account > | get_accounts () const |
virtual std::vector< monero_account > | get_accounts (bool include_subaddresses) const |
virtual std::vector< monero_account > | get_accounts (const std::string &tag) const |
virtual std::vector< monero_account > | get_accounts (bool include_subaddresses, const std::string &tag) const |
virtual monero_account | get_account (uint32_t account_idx) const |
virtual monero_account | get_account (const uint32_t account_idx, bool include_subaddresses) const |
virtual monero_account | create_account (const std::string &label="") |
virtual std::vector< monero_subaddress > | get_subaddresses (const uint32_t account_idx) const |
virtual std::vector< monero_subaddress > | get_subaddresses (const uint32_t account_idx, const std::vector< uint32_t > &subaddress_indices) const |
virtual monero_subaddress | get_subaddress (const uint32_t account_idx, const uint32_t subaddress_idx) const |
virtual monero_subaddress | create_subaddress (uint32_t account_idx, const std::string &label="") |
virtual void | set_subaddress_label (uint32_t account_idx, uint32_t subaddress_idx, const std::string &label="") |
virtual std::vector< std::shared_ptr< monero_tx_wallet > > | get_txs () const |
virtual std::vector< std::shared_ptr< monero_tx_wallet > > | get_txs (const monero_tx_query &query) const |
virtual std::vector< std::shared_ptr< monero_transfer > > | get_transfers (const monero_transfer_query &query) const |
virtual std::vector< std::shared_ptr< monero_output_wallet > > | get_outputs (const monero_output_query &query) const |
virtual std::string | export_outputs (bool all=false) const |
virtual int | import_outputs (const std::string &outputs_hex) |
virtual std::vector< std::shared_ptr< monero_key_image > > | export_key_images (bool all=false) const |
virtual std::shared_ptr< monero_key_image_import_result > | import_key_images (const std::vector< std::shared_ptr< monero_key_image > > &key_images) |
virtual void | freeze_output (const std::string &key_image) |
virtual void | thaw_output (const std::string &key_image) |
virtual bool | is_output_frozen (const std::string &key_image) |
virtual std::shared_ptr< monero_tx_wallet > | create_tx (const monero_tx_config &config) |
virtual std::vector< std::shared_ptr< monero_tx_wallet > > | create_txs (const monero_tx_config &config) |
virtual std::vector< std::shared_ptr< monero_tx_wallet > > | sweep_unlocked (const monero_tx_config &config) |
virtual std::shared_ptr< monero_tx_wallet > | sweep_output (const monero_tx_config &config) |
virtual std::vector< std::shared_ptr< monero_tx_wallet > > | sweep_dust (bool relay=false) |
virtual std::string | relay_tx (const std::string &tx_metadata) |
virtual std::string | relay_tx (const monero_tx_wallet &tx) |
virtual std::vector< std::string > | relay_txs (const std::vector< std::shared_ptr< monero_tx_wallet > > &txs) |
virtual std::vector< std::string > | relay_txs (const std::vector< std::string > &tx_metadatas) |
virtual monero_tx_set | describe_tx_set (const monero_tx_set &tx_set) |
virtual monero_tx_set | sign_txs (const std::string &unsigned_tx_hex) |
virtual std::vector< std::string > | submit_txs (const std::string &signed_tx_hex) |
virtual 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 |
virtual monero_message_signature_result | verify_message (const std::string &msg, const std::string &address, const std::string &signature) const |
virtual std::string | get_tx_key (const std::string &tx_hash) const |
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 |
virtual std::string | get_tx_proof (const std::string &tx_hash, const std::string &address, const std::string &message) const |
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 |
virtual std::string | get_spend_proof (const std::string &tx_hash, const std::string &message) const |
virtual bool | check_spend_proof (const std::string &tx_hash, const std::string &message, const std::string &signature) const |
virtual std::string | get_reserve_proof_wallet (const std::string &message) const |
virtual std::string | get_reserve_proof_account (uint32_t account_idx, uint64_t amount, const std::string &message) const |
virtual std::shared_ptr< monero_check_reserve > | check_reserve_proof (const std::string &address, const std::string &message, const std::string &signature) const |
virtual std::string | get_tx_note (const std::string &tx_hash) const |
virtual std::vector< std::string > | get_tx_notes (const std::vector< std::string > &tx_hashes) const |
virtual void | set_tx_note (const std::string &tx_hash, const std::string ¬e) |
virtual void | set_tx_notes (const std::vector< std::string > &tx_hashes, const std::vector< std::string > ¬es) |
virtual std::vector< monero_address_book_entry > | get_address_book_entries (const std::vector< uint64_t > &indices) const |
virtual uint64_t | add_address_book_entry (const std::string &address, const std::string &description) |
virtual void | edit_address_book_entry (uint64_t index, bool set_address, const std::string &address, bool set_description, const std::string &description) |
virtual void | delete_address_book_entry (uint64_t index) |
virtual std::string | get_payment_uri (const monero_tx_config &config) const |
virtual std::shared_ptr< monero_tx_config > | parse_payment_uri (const std::string &uri) const |
virtual bool | get_attribute (const std::string &key, std::string &value) const |
virtual void | set_attribute (const std::string &key, const std::string &val) |
virtual void | start_mining (boost::optional< uint64_t > num_threads, boost::optional< bool > background_mining, boost::optional< bool > ignore_battery) |
virtual void | stop_mining () |
virtual uint64_t | wait_for_next_block () |
virtual bool | is_multisig_import_needed () const |
virtual bool | is_multisig () const |
virtual monero_multisig_info | get_multisig_info () const |
virtual std::string | prepare_multisig () |
virtual std::string | make_multisig (const std::vector< std::string > &multisig_hexes, int threshold, const std::string &password) |
virtual monero_multisig_init_result | exchange_multisig_keys (const std::vector< std::string > &mutisig_hexes, const std::string &password) |
virtual std::string | export_multisig_hex () |
virtual int | import_multisig_hex (const std::vector< std::string > &multisig_hexes) |
virtual monero_multisig_sign_result | sign_multisig_tx_hex (const std::string &multisig_tx_hex) |
virtual std::vector< std::string > | submit_multisig_tx_hex (const std::string &signed_multisig_tx_hex) |
virtual void | change_password (const std::string &old_password, const std::string &new_password) |
virtual void | move_to (const std::string &path, const std::string &password) |
virtual void | save () |
virtual void | close (bool save=false) |
Base wallet with default implementations.
|
inlinevirtual |
Virtual destructor.
|
inlinevirtual |
Add an address book entry.
address | is the entry address |
description | is the entry description (optional) |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Register a listener receive wallet notifications.
listener | is the listener to receive wallet notifications |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Change the wallet password.
old_password | is the wallet's old password |
new_password | is the wallet's new password |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Proves a wallet has a disposable reserve using a signature.
address | is the public wallet address |
message | is a message included with the signature to further authenticate the proof (optional) |
signature | is the reserve proof signature to check |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Prove a spend using a signature. Unlike proving a transaction, it does not require the destination public address.
tx_hash | specifies the transaction to prove |
message | is a message included with the signature to further authenticate the proof (optional) |
signature | is the transaction signature to confirm |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Check a transaction in the blockchain with its secret key.
tx_hash | specifies the transaction to check |
tx_key | is the transaction's secret key |
address | is the destination public address of the transaction |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Prove a transaction by checking its signature.
tx_hash | specifies the transaction to prove |
address | is the destination public address of the transaction |
message | is a message included with the signature to further authenticate the proof (optional) |
signature | is the transaction signature to confirm |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Optionally save then close the wallet.
save | specifies if the wallet should be saved before being closed (default false) |
Reimplemented in monero::monero_wallet_full, and monero::monero_wallet_keys.
|
inlinevirtual |
Create a new account with a label for the first subaddress.
label | specifies the label for the account's first subaddress (optional) |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Create a subaddress within an account.
account_idx | specifies the index of the account to create the subaddress within |
label | specifies the the label for the subaddress (defaults to empty std::string) |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Create a transaction to transfer funds from this wallet.
config | configures the transaction to create |
|
inlinevirtual |
Create one or more transactions to transfer funds from this wallet.
config | configures the transactions to create |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Decode an integrated address to get its standard address and payment id.
integrated_address | is an integrated address to decode |
Reimplemented in monero::monero_wallet_full, and monero::monero_wallet_keys.
|
inlinevirtual |
Delete an address book entry.
index | is the index of the entry to delete |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Describes a tx set containing unsigned or multisig tx hex to a new tx set containing structured transactions.
tx_set | is a tx set containing unsigned or multisig tx hex |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Edit an address book entry.
index | is the index of the address book entry to edit |
set_address | specifies if the address should be updated |
address | is the updated address |
set_description | specifies if the description should be updated |
description | is the updated description |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Exchange multisig hex with participants in a M/N multisig wallet.
This process must be repeated with participants exactly N-M times.
multisig_hexes | are multisig hex from each participant |
password | is the wallet's password // TODO monero-project: redundant? wallet is created with password |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Export signed key images.
all | - export all key images if true, else export key images since the last export |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Export this wallet's multisig info as hex for other participants.
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Export outputs in hex format.
all | - export all outputs if true, else export outputs since the last export |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Freeze an output.
key_image | key image of the output to freeze |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Get an account.
account_idx | specifies the account to get |
include_subaddresses | specifies if subaddresses should be included |
Reimplemented in monero::monero_wallet_full, and monero::monero_wallet_keys.
|
inlinevirtual |
Get an account without subaddress information.
account_idx | specifies the account to get |
|
inlinevirtual |
Get all accounts.
|
inlinevirtual |
Get all accounts.
include_subaddresses | specifies if subaddresses should be included |
|
inlinevirtual |
Get accounts with a given tag.
include_subaddresses | specifies if subaddresses should be included |
tag | is the tag for filtering accounts, all accounts if null |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Get accounts with a given tag.
tag | is the tag for filtering accounts, all accounts if null |
|
inlinevirtual |
Get the address of a specific subaddress.
account_idx | specifies the account index of the address's subaddress |
subaddress_idx | specifies the subaddress index within the account |
Reimplemented in monero::monero_wallet_full, and monero::monero_wallet_keys.
|
inlinevirtual |
Get all address book entries.
indices | are indices of the entries to get |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Get the account and subaddress index of the given address.
address | is the address to get the account and subaddress index from |
exception | if address is not a wallet address |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Get an attribute.
key | is the attribute to get the value of |
value | is set to the key's value if set |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
|
inlinevirtual |
Get an account's balance.
account_idx | is the index of the account to get the balance of |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Get a subaddress's balance.
account_idx | is the index of the subaddress's account to get the balance of |
subaddress_idx | is the index of the subaddress to get the balance of |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Get the wallet's daemon connection.
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Get the height that the wallet's daemon is synced to.
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Get the maximum height of the peers the wallet's daemon is connected to.
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Get the height of the last block processed by the wallet (its index + 1).
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Get the blockchain's height by date as a conservative estimate for scanning.
year | - year of the height to get |
month | - month of the height to get as a number between 1 and 12 |
day | - day of the height to get as a number between 1 and 31 |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Get an integrated address from a standard address and a payment id.
standard_address | is the integrated addresse's standard address (defaults to wallet's primary address) |
payment_id | is the integrated addresse's payment id (defaults to randomly generating new payment id) |
Reimplemented in monero::monero_wallet_full, and monero::monero_wallet_keys.
|
inlinevirtual |
Get the listeners registered with the wallet.
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Get multisig info about this wallet.
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Get the wallet's network type (mainnet, testnet, or stagenet).
Reimplemented in monero::monero_wallet_full, and monero::monero_wallet_keys.
|
inlinevirtual |
Get outputs created from previous transactions that belong to the wallet (i.e. that the wallet can spend one time). Outputs are part of transactions which are stored in blocks on the blockchain.
Results can be configured by passing a monero_output_query. Outputs must meet every criteria defined in the query in order to be returned. All filtering is optional and no filtering is applied when not defined.
query | specifies query options (optional) |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Get the path of this wallet's file on disk.
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Creates a payment URI from a tx configuration.
config | specifies configuration for a potential tx |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Get the wallet's primary address.
Reimplemented in monero::monero_wallet_keys.
|
inlinevirtual |
Get the wallet's private spend key.
Reimplemented in monero::monero_wallet_full, and monero::monero_wallet_keys.
|
inlinevirtual |
Get the wallet's private view key.
Reimplemented in monero::monero_wallet_full, and monero::monero_wallet_keys.
|
inlinevirtual |
Get the wallet's public spend key.
Reimplemented in monero::monero_wallet_full, and monero::monero_wallet_keys.
|
inlinevirtual |
Get the wallet's public view key.
Reimplemented in monero::monero_wallet_full, and monero::monero_wallet_keys.
|
inlinevirtual |
Generate a signature to prove an available amount in an account.
account_idx | specifies the account to prove ownership of the amount |
amount | is the minimum amount to prove as available in the account |
message | is a message to include with the signature to further authenticate the proof (optional) |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Generate a signature to prove the entire balance of the wallet.
message | is a message included with the signature to further authenticate the proof (optional) |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Get the height of the first block that the wallet scans.
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Get the wallet's mnemonic phrase or seed.
Reimplemented in monero::monero_wallet_full, and monero::monero_wallet_keys.
|
inlinevirtual |
Get the language of the wallet's mnemonic phrase or seed.
Reimplemented in monero::monero_wallet_full, and monero::monero_wallet_keys.
|
inlinevirtual |
Generate a signature to prove a spend. Unlike proving a transaction, it does not require the destination public address.
tx_hash | specifies the transaction to prove |
message | is a message to include with the signature to further authenticate the proof (optional) |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Get a subaddress.
account_idx | specifies the index of the subaddress's account |
subaddress_idx | specifies index of the subaddress within the account |
|
inlinevirtual |
Get all subaddresses in an account.
account_idx | specifies the account to get subaddresses within |
|
inlinevirtual |
Get subaddresses in an account.
account_idx | specifies the account to get subaddresses within |
subaddress_indices | are specific subaddresses to get (optional) |
Reimplemented in monero::monero_wallet_full, and monero::monero_wallet_keys.
|
inlinevirtual |
Get incoming and outgoing transfers to and from this wallet. An outgoing transfer represents a total amount sent from one or more subaddresses within an account to individual destination addresses, each with their own amount. An incoming transfer represents a total amount received into a subaddress within an account. Transfers belong to transactions which are stored on the blockchain.
Query results can be filtered by passing in a monero_transfer_query. Transfers must meet every criteria defined in the query in order to be returned. All filtering is optional and no filtering is applied when not defined.
query | filters query results (optional) |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Get a transaction's secret key from its hash.
tx_hash | is the transaction's hash |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Get a transaction note.
tx_hash | specifies the transaction to get the note of |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Get notes for multiple transactions.
tx_hashes | identify the transactions to get notes for @preturns notes for the transactions |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Get a transaction signature to prove it.
tx_hash | specifies the transaction to prove |
address | is the destination public address of the transaction |
message | is a message to include with the signature to further authenticate the proof (optional) |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Get all wallet transactions. Wallet transactions contain one or more transfers that are either incoming or outgoing to the wallet.
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Get wallet transactions. Wallet transactions contain one or more transfers that are either incoming or outgoing to the wallet.
Query results can be filtered by passing in a transaction query. Transactions must meet every criteria defined in the query in order to be returned. All filtering is optional and no filtering is applied when not defined.
query | filters query results (optional) |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Get the wallet's unlocked balance.
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Get an account's unlocked balance.
account_idx | is the index of the account to get the unlocked balance of |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Get a subaddress's unlocked balance.
account_idx | is the index of the subaddress's account to get the unlocked balance of |
subaddress_idx | is the index of the subaddress to get the unlocked balance of |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Get the wallet's version.
Reimplemented in monero::monero_wallet_full, and monero::monero_wallet_keys.
|
inlinevirtual |
Import signed key images and verify their spent status.
key_images | are key images to import and verify (requires hex and signature) |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Import multisig info as hex from other participants.
Note: If the daemon is not trusted, this method will not automatically update the spent status after importing peer multisig hex. In that case, the
multisig_hexes | are multisig hex from each participant |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Import outputs in hex format.
outputs_hex | are outputs in hex format |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Indicates if the wallet is connected a daemon.
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Indicates if the wallet's daemon is synced with the network.
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Indicates if the daemon is trusted or untrusted.
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Indicates if this wallet is a multisig wallet.
|
inlinevirtual |
Indicates if importing multisig data is needed for returning a correct balance.
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Check if an output is frozen.
key_image | key image of the output to check if frozen |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Indicates if the wallet is synced with the daemon.
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Indicates if the wallet is view-only, meaning it does have the private spend key and can therefore only observe incoming outputs.
Reimplemented in monero::monero_wallet_full, and monero::monero_wallet_keys.
|
inlinevirtual |
Make this wallet multisig by importing multisig hex from participants.
multisig_hexes | are multisig hex from each participant |
threshold | is the number of signatures needed to sign transfers @password is the wallet password |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Move the wallet from its current path to the given path.
path | is the new wallet's path |
password | is the new wallet's password |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Parses a payment URI to a tx configuration.
uri | is the payment uri to parse |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Get multisig info as hex to share with participants to begin creating a multisig wallet.
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Relay a previously created transaction.
tx | is the transaction to relay |
|
inlinevirtual |
Relay a transaction previously created without relaying.
txMetadata | is transaction metadata previously created without relaying |
|
inlinevirtual |
Relay previously created transactions.
txs | are the transactions to relay |
|
inlinevirtual |
Relay transactions previously created without relaying.
tx_metadatas | are transaction metadata previously created without relaying |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Unregister a listener to receive wallet notifications.
listener | is the listener to unregister |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Rescan the blockchain from scratch, losing any information which cannot be recovered from the blockchain itself.
WARNING: This method discards local wallet data like destination addresses, tx secret keys, tx notes, etc.
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Rescan the blockchain for spent outputs.
Note: this can only be called with a trusted daemon.
Example use case: peer multisig hex is import when connected to an untrusted daemon, so the wallet will not rescan spent outputs. Then the wallet connects to a trusted daemon. This method should be manually invoked to rescan outputs.
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Save the wallet at its current path.
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Scan transactions by their hash/id.
txHashes | - tx hashes to scan |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Set an arbitrary attribute.
key | is the attribute key |
val | is the attribute value |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Set the wallet's daemon connection.
connection | is the connection to set |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Set the wallet's daemon connection.
uri | is the daemon's URI |
username | is the username to authenticate with the daemon (optional) |
password | is the password to authenticate with the daemon (optional) |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Set the Tor proxy to the daemon.
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Set the height of the first block that the wallet scans.
restore_height | is the height of the first block that the wallet scans |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Set a subaddress label.
account_idx | index of the account to set the label for |
subaddress_idx | index of the subaddress to set the label for |
label | the label to set |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Set a note for a specific transaction.
tx_hash | specifies the transaction |
note | specifies the note |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Set notes for multiple transactions.
tx_hashes | specify the transactions to set notes for |
notes | are the notes to set for the transactions |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Sign a message.
msg | - the message to sign |
signature_type | - sign with spend key or spend key |
account_idx | - the account index of the message signature (default 0) |
subaddress_idx | - the subaddress index of the message signature (default 0) |
Reimplemented in monero::monero_wallet_full, and monero::monero_wallet_keys.
|
inlinevirtual |
Sign previously created multisig transactions as represented by hex.
multisig_tx_hex | is the hex shared among the multisig transactions when they were created |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Sign unsigned transactions from a view-only wallet.
unsigned_tx_hex | is unsigned transaction hex from when the transactions were created |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Start mining.
num_threads | is the number of threads created for mining (optional) |
background_mining | specifies if mining should occur in the background (optional) |
ignore_battery | specifies if the battery should be ignored for mining (optional) |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Start background synchronizing with a maximum period between syncs.
syncPeriodInMs | - maximum period between syncs in milliseconds |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Stop mining.
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Stop the asynchronous thread to continuously synchronize the wallet with the daemon.
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Submit signed multisig transactions as represented by a hex std::string.
signed_multisig_tx_hex | is the signed multisig hex returned from signMultisigTxs() |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Submit signed transactions from a view-only wallet.
signed_tx_hex | is signed transaction hex from sign_txs() |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Sweep all unmixable dust outputs back to the wallet to make them easier to spend and mix.
relay | specifies if the resulting transaction should be relayed (default false) |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Sweep an output with a given key image.
config | configures the sweep transaction |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Sweep unlocked funds according to the given config.
config | is the sweep configuration |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Synchronize the wallet with the daemon as a one-time synchronous process.
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Synchronize the wallet with the daemon as a one-time synchronous process.
listener | - listener to receive notifications during synchronization |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Synchronize the wallet with the daemon as a one-time synchronous process.
start_height | is the start height to sync from (ignored if less than last processed block) |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Synchronizes the wallet with the blockchain.
start_height | - start height to sync from (ignored if less than last processed block) |
listener | - listener to receive notifications during synchronization |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Thaw a frozen output.
key_image | key image of the output to thaw |
Reimplemented in monero::monero_wallet_full.
|
inlinevirtual |
Verify a message signature.
msg | - the signed message |
address | - signing address |
signature | - signature |
Reimplemented in monero::monero_wallet_full, and monero::monero_wallet_keys.
|
inlinevirtual |
Wait for the next block to be added to the chain.
Reimplemented in monero::monero_wallet_full.