|
Monero
|
Interface for wallet operations. More...
#include <wallet2_api.h>

Public Types | |
| enum | Device { Device_Software = 0 , Device_Ledger = 1 , Device_Trezor = 2 } |
| enum | Status { Status_Ok , Status_Error , Status_Critical } |
| enum | ConnectionStatus { ConnectionStatus_Disconnected , ConnectionStatus_Connected , ConnectionStatus_WrongVersion } |
| enum | BackgroundSyncType { BackgroundSync_Off = 0 , BackgroundSync_ReusePassword = 1 , BackgroundSync_CustomPassword = 2 } |
Public Member Functions | |
| virtual | ~Wallet ()=0 |
| virtual std::string | seed (const std::string &seed_offset="") const =0 |
| virtual std::string | getSeedLanguage () const =0 |
| virtual void | setSeedLanguage (const std::string &arg)=0 |
| virtual int | status () const =0 |
| returns wallet status (Status_Ok | Status_Error) | |
| virtual std::string | errorString () const =0 |
| in case error status, returns error string | |
| virtual void | statusWithErrorString (int &status, std::string &errorString) const =0 |
| returns both error and error string atomically. suggested to use in instead of status() and errorString() | |
| virtual bool | setPassword (const std::string &password)=0 |
| virtual const std::string & | getPassword () const =0 |
| virtual bool | setDevicePin (const std::string &pin) |
| virtual bool | setDevicePassphrase (const std::string &passphrase) |
| virtual std::string | address (uint32_t accountIndex=0, uint32_t addressIndex=0) const =0 |
| std::string | mainAddress () const |
| virtual std::string | path () const =0 |
| virtual NetworkType | nettype () const =0 |
| bool | mainnet () const |
| bool | testnet () const |
| bool | stagenet () const |
| virtual void | hardForkInfo (uint8_t &version, uint64_t &earliest_height) const =0 |
| returns current hard fork info | |
| virtual bool | useForkRules (uint8_t version, int64_t early_blocks) const =0 |
| check if hard fork rules should be used | |
| virtual std::string | integratedAddress (const std::string &payment_id) const =0 |
| integratedAddress - returns integrated address for current wallet address and given payment_id. if passed "payment_id" param is an empty string or not-valid payment id string (16 characters hexadecimal string) - random payment_id will be generated | |
| virtual std::string | secretViewKey () const =0 |
| secretViewKey - returns secret view key | |
| virtual std::string | publicViewKey () const =0 |
| publicViewKey - returns public view key | |
| virtual std::string | secretSpendKey () const =0 |
| secretSpendKey - returns secret spend key | |
| virtual std::string | publicSpendKey () const =0 |
| publicSpendKey - returns public spend key | |
| virtual std::string | publicMultisigSignerKey () const =0 |
| publicMultisigSignerKey - returns public signer key | |
| virtual void | stop ()=0 |
| stop - interrupts wallet refresh() loop once (doesn't stop background refresh thread) | |
| virtual bool | store (const std::string &path)=0 |
| store - stores wallet to file. | |
| virtual std::string | filename () const =0 |
| filename - returns wallet filename | |
| virtual std::string | keysFilename () const =0 |
| keysFilename - returns keys filename. usually this formed as "wallet_filename".keys | |
| virtual bool | init (const std::string &daemon_address, uint64_t upper_transaction_size_limit=0, const std::string &daemon_username="", const std::string &daemon_password="", bool use_ssl=false, bool lightWallet=false, const std::string &proxy_address="")=0 |
| init - initializes wallet with daemon connection params. if daemon_address is local address, "trusted daemon" will be set to true forcibly startRefresh() should be called when wallet is initialized. | |
| virtual bool | createWatchOnly (const std::string &path, const std::string &password, const std::string &language) const =0 |
| createWatchOnly - Creates a watch only wallet | |
| virtual void | setRefreshFromBlockHeight (uint64_t refresh_from_block_height)=0 |
| setRefreshFromBlockHeight - start refresh from block height on recover | |
| virtual uint64_t | getRefreshFromBlockHeight () const =0 |
| getRestoreHeight - get wallet creation height | |
| virtual void | setRecoveringFromSeed (bool recoveringFromSeed)=0 |
| setRecoveringFromSeed - set state recover form seed | |
| virtual void | setRecoveringFromDevice (bool recoveringFromDevice)=0 |
| setRecoveringFromDevice - set state to recovering from device | |
| virtual void | setSubaddressLookahead (uint32_t major, uint32_t minor)=0 |
| setSubaddressLookahead - set size of subaddress lookahead | |
| virtual bool | connectToDaemon ()=0 |
| connectToDaemon - connects to the daemon. TODO: check if it can be removed | |
| virtual ConnectionStatus | connected () const =0 |
| connected - checks if the wallet connected to the daemon | |
| virtual void | setTrustedDaemon (bool arg)=0 |
| virtual bool | trustedDaemon () const =0 |
| virtual bool | setProxy (const std::string &address)=0 |
| virtual uint64_t | balance (uint32_t accountIndex=0) const =0 |
| uint64_t | balanceAll () const |
| virtual uint64_t | unlockedBalance (uint32_t accountIndex=0) const =0 |
| uint64_t | unlockedBalanceAll () const |
| virtual bool | watchOnly () const =0 |
| watchOnly - checks if wallet is watch only | |
| virtual bool | isDeterministic () const =0 |
| isDeterministic - checks if wallet keys are deterministic | |
| virtual uint64_t | blockChainHeight () const =0 |
| blockChainHeight - returns current blockchain height | |
| virtual uint64_t | approximateBlockChainHeight () const =0 |
| approximateBlockChainHeight - returns approximate blockchain height calculated from date/time | |
| virtual uint64_t | estimateBlockChainHeight () const =0 |
| estimateBlockChainHeight - returns estimate blockchain height. More accurate than approximateBlockChainHeight, uses daemon height and falls back to calculation from date/time | |
| virtual uint64_t | daemonBlockChainHeight () const =0 |
| daemonBlockChainHeight - returns daemon blockchain height | |
| virtual uint64_t | daemonBlockChainTargetHeight () const =0 |
| daemonBlockChainTargetHeight - returns daemon blockchain target height | |
| virtual bool | synchronized () const =0 |
| synchronized - checks if wallet was ever synchronized | |
| virtual void | startRefresh ()=0 |
| StartRefresh - Start/resume refresh thread (refresh every 10 seconds). | |
| virtual void | pauseRefresh ()=0 |
| pauseRefresh - pause refresh thread | |
| virtual bool | refresh ()=0 |
| refresh - refreshes the wallet, updating transactions from daemon | |
| virtual void | refreshAsync ()=0 |
| refreshAsync - refreshes wallet asynchronously. | |
| virtual bool | rescanBlockchain ()=0 |
| rescanBlockchain - rescans the wallet, updating transactions from daemon | |
| virtual void | rescanBlockchainAsync ()=0 |
| rescanBlockchainAsync - rescans wallet asynchronously, starting from genesys | |
| virtual void | setAutoRefreshInterval (int millis)=0 |
| setAutoRefreshInterval - setup interval for automatic refresh. | |
| virtual int | autoRefreshInterval () const =0 |
| autoRefreshInterval - returns automatic refresh interval in millis | |
| virtual void | addSubaddressAccount (const std::string &label)=0 |
| addSubaddressAccount - appends a new subaddress account at the end of the last major index of existing subaddress accounts | |
| virtual size_t | numSubaddressAccounts () const =0 |
| numSubaddressAccounts - returns the number of existing subaddress accounts | |
| virtual size_t | numSubaddresses (uint32_t accountIndex) const =0 |
| numSubaddresses - returns the number of existing subaddresses associated with the specified subaddress account | |
| virtual void | addSubaddress (uint32_t accountIndex, const std::string &label)=0 |
| addSubaddress - appends a new subaddress at the end of the last minor index of the specified subaddress account | |
| virtual std::string | getSubaddressLabel (uint32_t accountIndex, uint32_t addressIndex) const =0 |
| getSubaddressLabel - gets the label of the specified subaddress | |
| virtual void | setSubaddressLabel (uint32_t accountIndex, uint32_t addressIndex, const std::string &label)=0 |
| setSubaddressLabel - sets the label of the specified subaddress | |
| virtual MultisigState | multisig () const =0 |
| multisig - returns current state of multisig wallet creation process | |
| virtual std::string | getMultisigInfo () const =0 |
| getMultisigInfo | |
| virtual std::string | makeMultisig (const std::vector< std::string > &info, uint32_t threshold)=0 |
| makeMultisig - switches wallet in multisig state. The one and only creation phase for N / N wallets | |
| virtual std::string | exchangeMultisigKeys (const std::vector< std::string > &info, const bool force_update_use_with_caution)=0 |
| exchange_multisig_keys - provides additional key exchange round for arbitrary multisig schemes (like N-1/N, M/N) | |
| virtual bool | exportMultisigImages (std::string &images)=0 |
| exportMultisigImages - exports transfers' key images | |
| virtual size_t | importMultisigImages (const std::vector< std::string > &images)=0 |
| importMultisigImages - imports other participants' multisig images | |
| virtual bool | hasMultisigPartialKeyImages () const =0 |
| hasMultisigPartialKeyImages - checks if wallet needs to import multisig key images from other participants | |
| virtual PendingTransaction * | restoreMultisigTransaction (const std::string &signData)=0 |
| restoreMultisigTransaction creates PendingTransaction from signData | |
| virtual PendingTransaction * | createTransactionMultDest (const std::vector< std::string > &dst_addr, const std::string &payment_id, optional< std::vector< uint64_t > > amount, uint32_t mixin_count, PendingTransaction::Priority=PendingTransaction::Priority_Low, uint32_t subaddr_account=0, std::set< uint32_t > subaddr_indices={})=0 |
| createTransactionMultDest creates transaction with multiple destinations. if dst_addr is an integrated address, payment_id is ignored | |
| virtual PendingTransaction * | createTransaction (const std::string &dst_addr, const std::string &payment_id, optional< uint64_t > amount, uint32_t mixin_count, PendingTransaction::Priority=PendingTransaction::Priority_Low, uint32_t subaddr_account=0, std::set< uint32_t > subaddr_indices={})=0 |
| createTransaction creates transaction. if dst_addr is an integrated address, payment_id is ignored | |
| virtual PendingTransaction * | createSweepUnmixableTransaction ()=0 |
| createSweepUnmixableTransaction creates transaction with unmixable outputs. | |
| virtual UnsignedTransaction * | loadUnsignedTx (const std::string &unsigned_filename)=0 |
| loadUnsignedTx - creates transaction from unsigned tx file | |
| virtual bool | submitTransaction (const std::string &fileName)=0 |
| submitTransaction - submits transaction in signed tx file | |
| virtual void | disposeTransaction (PendingTransaction *t)=0 |
| disposeTransaction - destroys transaction object | |
| virtual uint64_t | estimateTransactionFee (const std::vector< std::pair< std::string, uint64_t > > &destinations, PendingTransaction::Priority priority) const =0 |
| Estimates transaction fee. | |
| virtual bool | exportKeyImages (const std::string &filename, bool all=false)=0 |
| exportKeyImages - exports key images to file | |
| virtual bool | importKeyImages (const std::string &filename)=0 |
| importKeyImages - imports key images from file | |
| virtual bool | exportOutputs (const std::string &filename, bool all=false)=0 |
| importOutputs - exports outputs to file | |
| virtual bool | importOutputs (const std::string &filename)=0 |
| importOutputs - imports outputs from file | |
| virtual bool | scanTransactions (const std::vector< std::string > &txids)=0 |
| scanTransactions - scan a list of transaction ids, this operation may reveal the txids to the remote node and affect your privacy | |
| virtual bool | setupBackgroundSync (const BackgroundSyncType background_sync_type, const std::string &wallet_password, const optional< std::string > &background_cache_password)=0 |
| setupBackgroundSync - setup background sync mode with just a view key | |
| virtual BackgroundSyncType | getBackgroundSyncType () const =0 |
| getBackgroundSyncType - get mode the wallet background syncs in | |
| virtual bool | startBackgroundSync ()=0 |
| startBackgroundSync - sync the chain in the background with just view key | |
| virtual bool | stopBackgroundSync (const std::string &wallet_password)=0 |
| stopBackgroundSync - bring back spend key and process background synced txs | |
| virtual bool | isBackgroundSyncing () const =0 |
| isBackgroundSyncing - returns true if the wallet is background syncing | |
| virtual bool | isBackgroundWallet () const =0 |
| isBackgroundWallet - returns true if the wallet is a background wallet | |
| virtual TransactionHistory * | history ()=0 |
| virtual AddressBook * | addressBook ()=0 |
| virtual Subaddress * | subaddress ()=0 |
| virtual SubaddressAccount * | subaddressAccount ()=0 |
| virtual void | setListener (WalletListener *)=0 |
| virtual uint32_t | defaultMixin () const =0 |
| defaultMixin - returns number of mixins used in transactions | |
| virtual void | setDefaultMixin (uint32_t arg)=0 |
| setDefaultMixin - setum number of mixins to be used for new transactions | |
| virtual bool | setCacheAttribute (const std::string &key, const std::string &val)=0 |
| setCacheAttribute - attach an arbitrary string to a wallet cache attribute | |
| virtual std::string | getCacheAttribute (const std::string &key) const =0 |
| getCacheAttribute - return an arbitrary string attached to a wallet cache attribute | |
| virtual bool | setUserNote (const std::string &txid, const std::string ¬e)=0 |
| setUserNote - attach an arbitrary string note to a txid | |
| virtual std::string | getUserNote (const std::string &txid) const =0 |
| getUserNote - return an arbitrary string note attached to a txid | |
| virtual std::string | getTxKey (const std::string &txid) const =0 |
| virtual bool | checkTxKey (const std::string &txid, std::string tx_key, const std::string &address, uint64_t &received, bool &in_pool, uint64_t &confirmations)=0 |
| virtual std::string | getTxProof (const std::string &txid, const std::string &address, const std::string &message) const =0 |
| virtual bool | checkTxProof (const std::string &txid, const std::string &address, const std::string &message, const std::string &signature, bool &good, uint64_t &received, bool &in_pool, uint64_t &confirmations)=0 |
| virtual std::string | getSpendProof (const std::string &txid, const std::string &message) const =0 |
| virtual bool | checkSpendProof (const std::string &txid, const std::string &message, const std::string &signature, bool &good) const =0 |
| virtual std::string | getReserveProof (bool all, uint32_t account_index, uint64_t amount, const std::string &message) const =0 |
| getReserveProof - Generates a proof that proves the reserve of unspent funds Parameters account_index and amount are ignored when all is true | |
| virtual bool | checkReserveProof (const std::string &address, const std::string &message, const std::string &signature, bool &good, uint64_t &total, uint64_t &spent) const =0 |
| virtual std::string | signMessage (const std::string &message, const std::string &address="")=0 |
| virtual bool | verifySignedMessage (const std::string &message, const std::string &addres, const std::string &signature) const =0 |
| verifySignedMessage - verify a signature matches a given message | |
| virtual std::string | signMultisigParticipant (const std::string &message) const =0 |
| signMultisigParticipant signs given message with the multisig public signer key | |
| virtual bool | verifyMessageWithPublicKey (const std::string &message, const std::string &publicKey, const std::string &signature) const =0 |
| verifyMessageWithPublicKey verifies that message was signed with the given public key | |
| virtual bool | parse_uri (const std::string &uri, std::string &address, std::string &payment_id, uint64_t &amount, std::string &tx_description, std::string &recipient_name, std::vector< std::string > &unknown_parameters, std::string &error)=0 |
| virtual std::string | make_uri (const std::string &address, const std::string &payment_id, uint64_t amount, const std::string &tx_description, const std::string &recipient_name, std::string &error) const =0 |
| virtual std::string | getDefaultDataDir () const =0 |
| virtual bool | rescanSpent ()=0 |
| virtual void | setOffline (bool offline)=0 |
| virtual bool | isOffline () const =0 |
| virtual bool | blackballOutputs (const std::vector< std::string > &outputs, bool add)=0 |
| blackballs a set of outputs | |
| virtual bool | blackballOutput (const std::string &amount, const std::string &offset)=0 |
| blackballs an output | |
| virtual bool | unblackballOutput (const std::string &amount, const std::string &offset)=0 |
| unblackballs an output | |
| virtual bool | getRing (const std::string &key_image, std::vector< uint64_t > &ring) const =0 |
| gets the ring used for a key image, if any | |
| virtual bool | getRings (const std::string &txid, std::vector< std::pair< std::string, std::vector< uint64_t > > > &rings) const =0 |
| gets the rings used for a txid, if any | |
| virtual bool | setRing (const std::string &key_image, const std::vector< uint64_t > &ring, bool relative)=0 |
| sets the ring used for a key image | |
| virtual void | segregatePreForkOutputs (bool segregate)=0 |
| sets whether pre-fork outs are to be segregated | |
| virtual void | segregationHeight (uint64_t height)=0 |
| sets the height where segregation should occur | |
| virtual void | keyReuseMitigation2 (bool mitigation)=0 |
| secondary key reuse mitigation | |
| virtual bool | lightWalletLogin (bool &isNewWallet) const =0 |
| Light wallet authenticate and login. | |
| virtual bool | lightWalletImportWalletRequest (std::string &payment_id, uint64_t &fee, bool &new_request, bool &request_fulfilled, std::string &payment_address, std::string &status)=0 |
| Initiates a light wallet import wallet request. | |
| virtual bool | lockKeysFile ()=0 |
| locks/unlocks the keys file; returns true on success | |
| virtual bool | unlockKeysFile ()=0 |
| virtual bool | isKeysFileLocked ()=0 |
| returns true if the keys file is locked | |
| virtual Device | getDeviceType () const =0 |
| Queries backing device for wallet keys. | |
| virtual uint64_t | coldKeyImageSync (uint64_t &spent, uint64_t &unspent)=0 |
| cold-device protocol key image sync | |
| virtual void | deviceShowAddress (uint32_t accountIndex, uint32_t addressIndex, const std::string &paymentId)=0 |
| shows address on device display | |
| virtual bool | reconnectDevice ()=0 |
| attempt to reconnect to hardware device | |
| virtual uint64_t | getBytesReceived ()=0 |
| get bytes received | |
| virtual uint64_t | getBytesSent ()=0 |
| get bytes sent | |
Static Public Member Functions | |
| static std::string | displayAmount (uint64_t amount) |
| static uint64_t | amountFromString (const std::string &amount) |
| static uint64_t | amountFromDouble (double amount) |
| static std::string | genPaymentId () |
| static bool | paymentIdValid (const std::string &paiment_id) |
| static bool | addressValid (const std::string &str, NetworkType nettype) |
| static bool | addressValid (const std::string &str, bool testnet) |
| static bool | keyValid (const std::string &secret_key_string, const std::string &address_string, bool isViewKey, NetworkType nettype, std::string &error) |
| static bool | keyValid (const std::string &secret_key_string, const std::string &address_string, bool isViewKey, bool testnet, std::string &error) |
| static std::string | paymentIdFromAddress (const std::string &str, NetworkType nettype) |
| static std::string | paymentIdFromAddress (const std::string &str, bool testnet) |
| static uint64_t | maximumAllowedAmount () |
| static void | init (const char *argv0, const char *default_log_base_name) |
| static void | init (const char *argv0, const char *default_log_base_name, const std::string &log_path, bool console) |
| static void | debug (const std::string &category, const std::string &str) |
| static void | info (const std::string &category, const std::string &str) |
| static void | warning (const std::string &category, const std::string &str) |
| static void | error (const std::string &category, const std::string &str) |
Interface for wallet operations.
|
pure virtual |
|
pure virtual |
Implemented in Monero::WalletImpl.
|
pure virtual |
Implemented in Monero::WalletImpl.
|
inlinestatic |
|
static |
|
pure virtual |
addSubaddress - appends a new subaddress at the end of the last minor index of the specified subaddress account
| accountIndex | - the major index specifying the subaddress account |
| label | - the label for the new subaddress |
Implemented in Monero::WalletImpl.
|
pure virtual |
addSubaddressAccount - appends a new subaddress account at the end of the last major index of existing subaddress accounts
| label | - the label for the new account (which is the as the label of the primary address (accountIndex,0)) |
Implemented in Monero::WalletImpl.
|
static |
|
pure virtual |
approximateBlockChainHeight - returns approximate blockchain height calculated from date/time
Implemented in Monero::WalletImpl.
|
pure virtual |
autoRefreshInterval - returns automatic refresh interval in millis
Implemented in Monero::WalletImpl.
Implemented in Monero::WalletImpl.
|
inline |
|
pure virtual |
blackballs an output
Implemented in Monero::WalletImpl.
|
pure virtual |
blackballs a set of outputs
Implemented in Monero::WalletImpl.
|
pure virtual |
|
pure virtual |
Implemented in Monero::WalletImpl.
|
pure virtual |
Implemented in Monero::WalletImpl.
|
pure virtual |
Implemented in Monero::WalletImpl.
|
pure virtual |
Implemented in Monero::WalletImpl.
|
pure virtual |
cold-device protocol key image sync
Implemented in Monero::WalletImpl.
|
pure virtual |
connected - checks if the wallet connected to the daemon
Implemented in Monero::WalletImpl.
|
pure virtual |
connectToDaemon - connects to the daemon. TODO: check if it can be removed
Implemented in Monero::WalletImpl.
|
pure virtual |
createSweepUnmixableTransaction creates transaction with unmixable outputs.
Implemented in Monero::WalletImpl.
|
pure virtual |
createTransaction creates transaction. if dst_addr is an integrated address, payment_id is ignored
| dst_addr | destination address as string |
| payment_id | optional payment_id, can be empty string |
| amount | amount |
| mixin_count | mixin count. if 0 passed, wallet will use default value |
| subaddr_account | subaddress account from which the input funds are taken |
| subaddr_indices | set of subaddress indices to use for transfer or sweeping. if set empty, all are chosen when sweeping, and one or more are automatically chosen when transferring. after execution, returns the set of actually used indices |
| priority |
Implemented in Monero::WalletImpl.
|
pure virtual |
createTransactionMultDest creates transaction with multiple destinations. if dst_addr is an integrated address, payment_id is ignored
| dst_addr | vector of destination address as string |
| payment_id | optional payment_id, can be empty string |
| amount | vector of amounts |
| mixin_count | mixin count. if 0 passed, wallet will use default value |
| subaddr_account | subaddress account from which the input funds are taken |
| subaddr_indices | set of subaddress indices to use for transfer or sweeping. if set empty, all are chosen when sweeping, and one or more are automatically chosen when transferring. after execution, returns the set of actually used indices |
| priority |
Implemented in Monero::WalletImpl.
|
pure virtual |
createWatchOnly - Creates a watch only wallet
| path | - where to store the wallet |
| password | |
| language |
Implemented in Monero::WalletImpl.
|
pure virtual |
daemonBlockChainHeight - returns daemon blockchain height
Implemented in Monero::WalletImpl.
|
pure virtual |
daemonBlockChainTargetHeight - returns daemon blockchain target height
Implemented in Monero::WalletImpl.
|
pure virtual |
defaultMixin - returns number of mixins used in transactions
Implemented in Monero::WalletImpl.
|
pure virtual |
shows address on device display
Implemented in Monero::WalletImpl.
|
static |
|
pure virtual |
disposeTransaction - destroys transaction object
| t | - pointer to the "PendingTransaction" object. Pointer is not valid after function returned; |
Implemented in Monero::WalletImpl.
|
pure virtual |
in case error status, returns error string
Implemented in Monero::WalletImpl.
|
pure virtual |
estimateBlockChainHeight - returns estimate blockchain height. More accurate than approximateBlockChainHeight, uses daemon height and falls back to calculation from date/time
Implemented in Monero::WalletImpl.
|
pure virtual |
Estimates transaction fee.
| destinations | Vector consisting of <address, amount> pairs. |
Implemented in Monero::WalletImpl.
|
pure virtual |
exchange_multisig_keys - provides additional key exchange round for arbitrary multisig schemes (like N-1/N, M/N)
| info | - base58 encoded key derivations returned by makeMultisig or exchangeMultisigKeys function call |
| force_update_use_with_caution | - force multisig account to update even if not all signers contribute round messages |
Implemented in Monero::WalletImpl.
|
pure virtual |
exportKeyImages - exports key images to file
| filename | |
| all | - export all key images or only those that have not yet been exported |
Implemented in Monero::WalletImpl.
|
pure virtual |
exportMultisigImages - exports transfers' key images
| images | - output paramter for hex encoded array of images |
Implemented in Monero::WalletImpl.
|
pure virtual |
importOutputs - exports outputs to file
| filename |
Implemented in Monero::WalletImpl.
|
pure virtual |
|
static |
|
pure virtual |
getBackgroundSyncType - get mode the wallet background syncs in
Implemented in Monero::WalletImpl.
|
pure virtual |
get bytes received
Implemented in Monero::WalletImpl.
|
pure virtual |
get bytes sent
Implemented in Monero::WalletImpl.
|
pure virtual |
getCacheAttribute - return an arbitrary string attached to a wallet cache attribute
| key | - the key |
Implemented in Monero::WalletImpl.
|
pure virtual |
Implemented in Monero::WalletImpl.
|
pure virtual |
Queries backing device for wallet keys.
Implemented in Monero::WalletImpl.
|
pure virtual |
getMultisigInfo
Implemented in Monero::WalletImpl.
|
pure virtual |
Implemented in Monero::WalletImpl.
|
pure virtual |
getRestoreHeight - get wallet creation height
Implemented in Monero::WalletImpl.
|
pure virtual |
getReserveProof - Generates a proof that proves the reserve of unspent funds Parameters account_index and amount are ignored when all is true
Implemented in Monero::WalletImpl.
|
pure virtual |
gets the ring used for a key image, if any
Implemented in Monero::WalletImpl.
|
pure virtual |
gets the rings used for a txid, if any
Implemented in Monero::WalletImpl.
|
pure virtual |
Implemented in Monero::WalletImpl.
|
pure virtual |
Implemented in Monero::WalletImpl.
|
pure virtual |
getSubaddressLabel - gets the label of the specified subaddress
| accountIndex | - the major index specifying the subaddress account |
| addressIndex | - the minor index specifying the subaddress |
Implemented in Monero::WalletImpl.
|
pure virtual |
Implemented in Monero::WalletImpl.
|
pure virtual |
Implemented in Monero::WalletImpl.
|
pure virtual |
getUserNote - return an arbitrary string note attached to a txid
| txid | - the transaction id to attach the note to |
Implemented in Monero::WalletImpl.
|
pure virtual |
returns current hard fork info
Implemented in Monero::WalletImpl.
|
pure virtual |
hasMultisigPartialKeyImages - checks if wallet needs to import multisig key images from other participants
Implemented in Monero::WalletImpl.
|
pure virtual |
Implemented in Monero::WalletImpl.
|
pure virtual |
importKeyImages - imports key images from file
| filename |
Implemented in Monero::WalletImpl.
|
pure virtual |
importMultisigImages - imports other participants' multisig images
| images | - array of hex encoded arrays of images obtained with exportMultisigImages |
Implemented in Monero::WalletImpl.
|
pure virtual |
importOutputs - imports outputs from file
| filename |
Implemented in Monero::WalletImpl.
|
static |
|
pure virtual |
init - initializes wallet with daemon connection params. if daemon_address is local address, "trusted daemon" will be set to true forcibly startRefresh() should be called when wallet is initialized.
| daemon_address | - daemon address in "hostname:port" format |
| upper_transaction_size_limit | |
| daemon_username | |
| daemon_password | |
| lightWallet | - start wallet in light mode, connect to a openmonero compatible server. |
| proxy_address | - set proxy address, empty string to disable |
Implemented in Monero::WalletImpl.
|
pure virtual |
integratedAddress - returns integrated address for current wallet address and given payment_id. if passed "payment_id" param is an empty string or not-valid payment id string (16 characters hexadecimal string) - random payment_id will be generated
| payment_id | - 16 characters hexadecimal string or empty string if new random payment id needs to be generated |
Implemented in Monero::WalletImpl.
|
pure virtual |
isBackgroundSyncing - returns true if the wallet is background syncing
Implemented in Monero::WalletImpl.
|
pure virtual |
isBackgroundWallet - returns true if the wallet is a background wallet
Implemented in Monero::WalletImpl.
|
pure virtual |
isDeterministic - checks if wallet keys are deterministic
Implemented in Monero::WalletImpl.
|
pure virtual |
returns true if the keys file is locked
Implemented in Monero::WalletImpl.
|
pure virtual |
Implemented in Monero::WalletImpl.
|
pure virtual |
secondary key reuse mitigation
Implemented in Monero::WalletImpl.
|
pure virtual |
keysFilename - returns keys filename. usually this formed as "wallet_filename".keys
Implemented in Monero::WalletImpl.
|
inlinestatic |
|
static |
|
pure virtual |
Initiates a light wallet import wallet request.
Implemented in Monero::WalletImpl.
|
pure virtual |
Light wallet authenticate and login.
Implemented in Monero::WalletImpl.
|
pure virtual |
loadUnsignedTx - creates transaction from unsigned tx file
Implemented in Monero::WalletImpl.
|
pure virtual |
locks/unlocks the keys file; returns true on success
Implemented in Monero::WalletImpl.
|
inline |
|
inline |
|
pure virtual |
Implemented in Monero::WalletImpl.
|
pure virtual |
makeMultisig - switches wallet in multisig state. The one and only creation phase for N / N wallets
| info | - vector of multisig infos from other participants obtained with getMulitisInfo call |
| threshold | - number of required signers to make valid transaction. Must be <= number of participants |
Implemented in Monero::WalletImpl.
|
static |
|
pure virtual |
multisig - returns current state of multisig wallet creation process
Implemented in Monero::WalletImpl.
|
pure virtual |
Implemented in Monero::WalletImpl.
|
pure virtual |
numSubaddressAccounts - returns the number of existing subaddress accounts
Implemented in Monero::WalletImpl.
|
pure virtual |
numSubaddresses - returns the number of existing subaddresses associated with the specified subaddress account
| accountIndex | - the major index specifying the subaddress account |
Implemented in Monero::WalletImpl.
|
pure virtual |
Implemented in Monero::WalletImpl.
|
pure virtual |
Implemented in Monero::WalletImpl.
|
pure virtual |
pauseRefresh - pause refresh thread
Implemented in Monero::WalletImpl.
|
inlinestatic |
|
static |
|
static |
|
pure virtual |
publicMultisigSignerKey - returns public signer key
Implemented in Monero::WalletImpl.
|
pure virtual |
publicSpendKey - returns public spend key
Implemented in Monero::WalletImpl.
|
pure virtual |
|
pure virtual |
attempt to reconnect to hardware device
Implemented in Monero::WalletImpl.
|
pure virtual |
refresh - refreshes the wallet, updating transactions from daemon
Implemented in Monero::WalletImpl.
|
pure virtual |
refreshAsync - refreshes wallet asynchronously.
Implemented in Monero::WalletImpl.
|
pure virtual |
rescanBlockchain - rescans the wallet, updating transactions from daemon
Implemented in Monero::WalletImpl.
|
pure virtual |
rescanBlockchainAsync - rescans wallet asynchronously, starting from genesys
Implemented in Monero::WalletImpl.
|
pure virtual |
Implemented in Monero::WalletImpl.
|
pure virtual |
restoreMultisigTransaction creates PendingTransaction from signData
| signData | encrypted unsigned transaction. Obtained with PendingTransaction::multisigSignData |
Implemented in Monero::WalletImpl.
|
pure virtual |
scanTransactions - scan a list of transaction ids, this operation may reveal the txids to the remote node and affect your privacy
| txids | - list of transaction ids |
Implemented in Monero::WalletImpl.
|
pure virtual |
secretSpendKey - returns secret spend key
Implemented in Monero::WalletImpl.
|
pure virtual |
|
pure virtual |
Implemented in Monero::WalletImpl.
|
pure virtual |
sets whether pre-fork outs are to be segregated
Implemented in Monero::WalletImpl.
|
pure virtual |
sets the height where segregation should occur
Implemented in Monero::WalletImpl.
|
pure virtual |
setAutoRefreshInterval - setup interval for automatic refresh.
| seconds | - interval in millis. if zero or less than zero - automatic refresh disabled; |
Implemented in Monero::WalletImpl.
|
pure virtual |
setCacheAttribute - attach an arbitrary string to a wallet cache attribute
| key | - the key |
| val | - the value |
Implemented in Monero::WalletImpl.
|
pure virtual |
setDefaultMixin - setum number of mixins to be used for new transactions
| arg |
Implemented in Monero::WalletImpl.
|
inlinevirtual |
Reimplemented in Monero::WalletImpl.
|
inlinevirtual |
Reimplemented in Monero::WalletImpl.
|
pure virtual |
Implemented in Monero::WalletImpl.
|
pure virtual |
Implemented in Monero::WalletImpl.
|
pure virtual |
Implemented in Monero::WalletImpl.
|
pure virtual |
Implemented in Monero::WalletImpl.
|
pure virtual |
setRecoveringFromDevice - set state to recovering from device
| recoveringFromDevice | - true/false |
Implemented in Monero::WalletImpl.
|
pure virtual |
setRecoveringFromSeed - set state recover form seed
| recoveringFromSeed | - true/false |
Implemented in Monero::WalletImpl.
|
pure virtual |
setRefreshFromBlockHeight - start refresh from block height on recover
| refresh_from_block_height | - blockchain start height |
Implemented in Monero::WalletImpl.
|
pure virtual |
sets the ring used for a key image
Implemented in Monero::WalletImpl.
|
pure virtual |
Implemented in Monero::WalletImpl.
|
pure virtual |
setSubaddressLabel - sets the label of the specified subaddress
| accountIndex | - the major index specifying the subaddress account |
| addressIndex | - the minor index specifying the subaddress |
| label | - the new label for the specified subaddress |
Implemented in Monero::WalletImpl.
setSubaddressLookahead - set size of subaddress lookahead
| major | - size fot the major index |
| minor | - size fot the minor index |
Implemented in Monero::WalletImpl.
|
pure virtual |
Implemented in Monero::WalletImpl.
|
pure virtual |
setupBackgroundSync - setup background sync mode with just a view key
| background_sync_type | - the mode the wallet background syncs in |
| wallet_password | |
| background_cache_password | - custom password to encrypt background cache, only needed for custom password background sync type |
Implemented in Monero::WalletImpl.
|
pure virtual |
setUserNote - attach an arbitrary string note to a txid
| txid | - the transaction id to attach the note to |
| note | - the note |
Implemented in Monero::WalletImpl.
|
pure virtual |
Implemented in Monero::WalletImpl.
|
pure virtual |
signMultisigParticipant signs given message with the multisig public signer key
| message | message to sign |
Implemented in Monero::WalletImpl.
|
inline |
|
pure virtual |
startBackgroundSync - sync the chain in the background with just view key
Implemented in Monero::WalletImpl.
|
pure virtual |
StartRefresh - Start/resume refresh thread (refresh every 10 seconds).
Implemented in Monero::WalletImpl.
|
pure virtual |
returns wallet status (Status_Ok | Status_Error)
Implemented in Monero::WalletImpl.
|
pure virtual |
returns both error and error string atomically. suggested to use in instead of status() and errorString()
Implemented in Monero::WalletImpl.
|
pure virtual |
stop - interrupts wallet refresh() loop once (doesn't stop background refresh thread)
Implemented in Monero::WalletImpl.
|
pure virtual |
stopBackgroundSync - bring back spend key and process background synced txs
| wallet_password |
Implemented in Monero::WalletImpl.
|
pure virtual |
store - stores wallet to file.
| path | - main filename to store wallet to. additionally stores address file and keys file. to store to the same file - just pass empty string; |
Implemented in Monero::WalletImpl.
|
pure virtual |
Implemented in Monero::WalletImpl.
|
pure virtual |
Implemented in Monero::WalletImpl.
|
pure virtual |
submitTransaction - submits transaction in signed tx file
Implemented in Monero::WalletImpl.
|
pure virtual |
|
inline |
|
pure virtual |
Implemented in Monero::WalletImpl.
|
pure virtual |
unblackballs an output
Implemented in Monero::WalletImpl.
Implemented in Monero::WalletImpl.
|
inline |
|
pure virtual |
Implemented in Monero::WalletImpl.
|
pure virtual |
check if hard fork rules should be used
Implemented in Monero::WalletImpl.
|
pure virtual |
verifyMessageWithPublicKey verifies that message was signed with the given public key
| message | message |
| publicKey | hex encoded public key |
| signature | signature of the message |
Implemented in Monero::WalletImpl.
|
pure virtual |
verifySignedMessage - verify a signature matches a given message
| message | - the message (arbitrary byte data) |
| address | - the address the signature claims to be made with |
| signature | - the signature |
Implemented in Monero::WalletImpl.
|
pure virtual |
watchOnly - checks if wallet is watch only
Implemented in Monero::WalletImpl.