|
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 const CChainParams & | getChainParams ()=0 |
| Get chainparams. More...
|
|
virtual bool | getNewDestination (const OutputType type, const std::string label, CTxDestination &dest)=0 |
|
virtual bool | getPubKey (const CScript &script, const CKeyID &address, CPubKey &pub_key)=0 |
| Get public key. More...
|
|
virtual SigningResult | signMessage (const std::string &message, const PKHash &pkhash, std::string &str_sig)=0 |
| Sign message. 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 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 CTransactionRef | createTransaction (const std::vector< CRecipient > &recipients, const CCoinControl &coin_control, bool sign, int &change_pos, Amount &fee, bilingual_str &fail_reason)=0 |
| Create transaction. More...
|
|
virtual void | commitTransaction (CTransactionRef tx, WalletValueMap value_map, WalletOrderForm order_form)=0 |
| Commit transaction. More...
|
|
virtual bool | transactionCanBeAbandoned (const TxId &txid)=0 |
| Return whether transaction can be abandoned. More...
|
|
virtual bool | abandonTransaction (const TxId &txid)=0 |
| Abandon transaction. More...
|
|
virtual CTransactionRef | getTx (const TxId &txid)=0 |
| Get a transaction. More...
|
|
virtual WalletTx | getWalletTx (const TxId &txid)=0 |
| Get transaction information. More...
|
|
virtual std::vector< WalletTx > | getWalletTxs ()=0 |
| Get list of all wallet transactions. More...
|
|
virtual bool | tryGetTxStatus (const TxId &txid, WalletTxStatus &tx_status, int &num_blocks, int64_t &block_time)=0 |
| Try to get updated status for a particular transaction, if possible without blocking. More...
|
|
virtual WalletTx | getWalletTxDetails (const TxId &txid, WalletTxStatus &tx_status, WalletOrderForm &order_form, bool &in_mempool, int &num_blocks)=0 |
| Get transaction details. More...
|
|
virtual TransactionError | fillPSBT (SigHashType sighash_type, bool sign, bool bip32derivs, PartiallySignedTransaction &psbtx, bool &complete) const =0 |
| Fill PSBT. More...
|
|
virtual WalletBalances | getBalances ()=0 |
| Get balances. More...
|
|
virtual bool | tryGetBalances (WalletBalances &balances, BlockHash &block_hash)=0 |
| Get balances if possible without blocking. More...
|
|
virtual Amount | getBalance ()=0 |
| Get balance. More...
|
|
virtual Amount | 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 Amount | getDebit (const CTxIn &txin, isminefilter filter)=0 |
| Return debit amount if transaction input belongs to wallet. More...
|
|
virtual Amount | 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 Amount | getRequiredFee (unsigned int tx_bytes)=0 |
| Get required fee. More...
|
|
virtual Amount | getMinimumFee (unsigned int tx_bytes, const CCoinControl &coin_control)=0 |
| Get minimum fee. More...
|
|
virtual bool | hdEnabled ()=0 |
|
virtual bool | canGetAddresses () const =0 |
|
virtual bool | privateKeysDisabled ()=0 |
|
virtual OutputType | getDefaultAddressType ()=0 |
|
virtual Amount | getDefaultMaxTxFee ()=0 |
| Get max tx fee. More...
|
|
virtual void | remove ()=0 |
|
virtual bool | isLegacy ()=0 |
| Return whether is a legacy wallet. More...
|
|
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 |
|
virtual std::unique_ptr< Handler > | handleCanGetAddressesChanged (CanGetAddressesChangedFn fn)=0 |
|
virtual CWallet * | wallet () |
| Return pointer to internal wallet class, useful for testing. More...
|
|
Interface for accessing a wallet.
Definition at line 59 of file wallet.h.