|
| virtual | ~Wallet () |
| |
| virtual bool | encryptWallet (const SecureString &wallet_passphrase)=0 |
| | Encrypt wallet. More...
|
| |
| virtual bool | isCrypted ()=0 |
| | Return whether wallet is encrypted. More...
|
| |
| virtual bool | lock ()=0 |
| | Lock wallet. More...
|
| |
| virtual bool | unlock (const SecureString &wallet_passphrase)=0 |
| | Unlock wallet. More...
|
| |
| virtual bool | isLocked ()=0 |
| | Return whether wallet is locked. More...
|
| |
| virtual bool | changeWalletPassphrase (const SecureString &old_wallet_passphrase, const SecureString &new_wallet_passphrase)=0 |
| | Change wallet passphrase. More...
|
| |
| virtual void | abortRescan ()=0 |
| | Abort a rescan. More...
|
| |
| virtual bool | backupWallet (const std::string &filename)=0 |
| | Back up wallet. More...
|
| |
| virtual std::string | getWalletName ()=0 |
| | Get wallet name. More...
|
| |
| virtual bool | getKeyFromPool (bool internal, CPubKey &pub_key)=0 |
| |
| virtual bool | getPubKey (const CKeyID &address, CPubKey &pub_key)=0 |
| | Get public key. More...
|
| |
| virtual bool | getPrivKey (const CKeyID &address, CKey &key)=0 |
| | Get private key. More...
|
| |
| virtual bool | isSpendable (const CTxDestination &dest)=0 |
| | Return whether wallet has private key. More...
|
| |
| virtual bool | haveWatchOnly ()=0 |
| | Return whether wallet has watch only keys. More...
|
| |
| virtual bool | setAddressBook (const CTxDestination &dest, const std::string &name, const std::string &purpose)=0 |
| | Add or update address. More...
|
| |
| virtual bool | delAddressBook (const CTxDestination &dest)=0 |
| |
| virtual bool | getAddress (const CTxDestination &dest, std::string *name, isminetype *is_mine, std::string *purpose)=0 |
| | Look up address in wallet, return whether exists. More...
|
| |
| virtual std::vector< WalletAddress > | getAddresses ()=0 |
| | Get wallet address list. More...
|
| |
| virtual void | learnRelatedScripts (const CPubKey &key, OutputType type)=0 |
| | Add scripts to key store so old so software versions opening the wallet database can detect payments to newer address types. More...
|
| |
| virtual bool | addDestData (const CTxDestination &dest, const std::string &key, const std::string &value)=0 |
| | Add dest data. More...
|
| |
| virtual bool | eraseDestData (const CTxDestination &dest, const std::string &key)=0 |
| | Erase dest data. More...
|
| |
| virtual std::vector< std::string > | getDestValues (const std::string &prefix)=0 |
| | Get dest values with prefix. More...
|
| |
| virtual void | lockCoin (const COutPoint &output)=0 |
| | Lock coin. More...
|
| |
| virtual void | unlockCoin (const COutPoint &output)=0 |
| | Unlock coin. More...
|
| |
| virtual bool | isLockedCoin (const COutPoint &output)=0 |
| | Return whether coin is locked. More...
|
| |
| virtual void | listLockedCoins (std::vector< COutPoint > &outputs)=0 |
| | List locked coins. More...
|
| |
| virtual std::unique_ptr< PendingWalletTx > | createTransaction (const std::vector< CRecipient > &recipients, const CCoinControl &coin_control, bool sign, int &change_pos, CAmount &fee, std::string &fail_reason)=0 |
| | Create transaction. More...
|
| |
| virtual bool | transactionCanBeAbandoned (const uint256 &txid)=0 |
| | Return whether transaction can be abandoned. More...
|
| |
| virtual bool | abandonTransaction (const uint256 &txid)=0 |
| | Abandon transaction. More...
|
| |
| virtual bool | transactionCanBeBumped (const uint256 &txid)=0 |
| | Return whether transaction can be bumped. More...
|
| |
| virtual bool | createBumpTransaction (const uint256 &txid, const CCoinControl &coin_control, CAmount total_fee, std::vector< std::string > &errors, CAmount &old_fee, CAmount &new_fee, CMutableTransaction &mtx)=0 |
| | Create bump transaction. More...
|
| |
| virtual bool | signBumpTransaction (CMutableTransaction &mtx)=0 |
| | Sign bump transaction. More...
|
| |
| virtual bool | commitBumpTransaction (const uint256 &txid, CMutableTransaction &&mtx, std::vector< std::string > &errors, uint256 &bumped_txid)=0 |
| | Commit bump transaction. More...
|
| |
| virtual CTransactionRef | getTx (const uint256 &txid)=0 |
| | Get a transaction. More...
|
| |
| virtual WalletTx | getWalletTx (const uint256 &txid)=0 |
| | Get transaction information. More...
|
| |
| virtual std::vector< WalletTx > | getWalletTxs ()=0 |
| | Get list of all wallet transactions. More...
|
| |
| virtual bool | tryGetTxStatus (const uint256 &txid, WalletTxStatus &tx_status, int &num_blocks, int64_t &adjusted_time)=0 |
| | Try to get updated status for a particular transaction, if possible without blocking. More...
|
| |
| virtual WalletTx | getWalletTxDetails (const uint256 &txid, WalletTxStatus &tx_status, WalletOrderForm &order_form, bool &in_mempool, int &num_blocks, int64_t &adjusted_time)=0 |
| | Get transaction details. More...
|
| |
| virtual WalletBalances | getBalances ()=0 |
| | Get balances. More...
|
| |
| virtual bool | tryGetBalances (WalletBalances &balances, int &num_blocks)=0 |
| | Get balances if possible without blocking. More...
|
| |
| virtual CAmount | getBalance ()=0 |
| | Get balance. More...
|
| |
| virtual CAmount | getAvailableBalance (const CCoinControl &coin_control)=0 |
| | Get available balance. More...
|
| |
| virtual isminetype | txinIsMine (const CTxIn &txin)=0 |
| | Return whether transaction input belongs to wallet. More...
|
| |
| virtual isminetype | txoutIsMine (const CTxOut &txout)=0 |
| | Return whether transaction output belongs to wallet. More...
|
| |
| virtual CAmount | getDebit (const CTxIn &txin, isminefilter filter)=0 |
| | Return debit amount if transaction input belongs to wallet. More...
|
| |
| virtual CAmount | getCredit (const CTxOut &txout, isminefilter filter)=0 |
| | Return credit amount if transaction input belongs to wallet. More...
|
| |
| virtual CoinsList | listCoins ()=0 |
| |
| virtual std::vector< WalletTxOut > | getCoins (const std::vector< COutPoint > &outputs)=0 |
| | Return wallet transaction output information. More...
|
| |
| virtual CAmount | getRequiredFee (unsigned int tx_bytes)=0 |
| | Get required fee. More...
|
| |
| virtual CAmount | getMinimumFee (unsigned int tx_bytes, const CCoinControl &coin_control, int *returned_target, FeeReason *reason)=0 |
| | Get minimum fee. More...
|
| |
| virtual unsigned int | getConfirmTarget ()=0 |
| | Get tx confirm target. More...
|
| |
| virtual bool | hdEnabled ()=0 |
| |
| virtual bool | IsWalletFlagSet (uint64_t flag)=0 |
| |
| virtual OutputType | getDefaultAddressType ()=0 |
| |
| virtual OutputType | getDefaultChangeType ()=0 |
| |
| virtual std::unique_ptr< Handler > | handleUnload (UnloadFn fn)=0 |
| |
| virtual std::unique_ptr< Handler > | handleShowProgress (ShowProgressFn fn)=0 |
| |
| virtual std::unique_ptr< Handler > | handleStatusChanged (StatusChangedFn fn)=0 |
| |
| virtual std::unique_ptr< Handler > | handleAddressBookChanged (AddressBookChangedFn fn)=0 |
| |
| virtual std::unique_ptr< Handler > | handleTransactionChanged (TransactionChangedFn fn)=0 |
| |
| virtual std::unique_ptr< Handler > | handleWatchOnlyChanged (WatchOnlyChangedFn fn)=0 |
| |
Interface for accessing a wallet.
Definition at line 46 of file wallet.h.