|
virtual | ~Wallet ()=default |
|
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 util::Result< CTxDestination > | getNewDestination (const OutputType type, const std::string &label)=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::optional< wallet::AddressPurpose > &purpose)=0 |
| Add or update address. More...
|
|
virtual bool | delAddressBook (const CTxDestination &dest)=0 |
|
virtual bool | getAddress (const CTxDestination &dest, std::string *name, wallet::isminetype *is_mine, wallet::AddressPurpose *purpose)=0 |
| Look up address in wallet, return whether exists. More...
|
|
virtual std::vector< WalletAddress > | getAddresses ()=0 |
| Get wallet address list. More...
|
|
virtual std::vector< std::string > | getAddressReceiveRequests ()=0 |
| Get receive requests. More...
|
|
virtual bool | setAddressReceiveRequest (const CTxDestination &dest, const std::string &id, const std::string &value)=0 |
| Save or remove receive request. More...
|
|
virtual util::Result< void > | displayAddress (const CTxDestination &dest)=0 |
| Display address on external signer. More...
|
|
virtual bool | lockCoin (const COutPoint &output, const bool write_to_db)=0 |
| Lock coin. More...
|
|
virtual bool | 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 util::Result< CTransactionRef > | createTransaction (const std::vector< wallet::CRecipient > &recipients, const wallet::CCoinControl &coin_control, bool sign, int &change_pos, CAmount &fee)=0 |
| Create transaction. More...
|
|
virtual void | commitTransaction (CTransactionRef tx, WalletValueMap value_map, WalletOrderForm order_form)=0 |
| Commit 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 wallet::CCoinControl &coin_control, std::vector< bilingual_str > &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< bilingual_str > &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::set< WalletTx > | getWalletTxs ()=0 |
| Get list of all wallet transactions. More...
|
|
virtual bool | tryGetTxStatus (const uint256 &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 uint256 &txid, WalletTxStatus &tx_status, WalletOrderForm &order_form, bool &in_mempool, int &num_blocks)=0 |
| Get transaction details. More...
|
|
virtual std::optional< common::PSBTError > | fillPSBT (int sighash_type, bool sign, bool bip32derivs, size_t *n_signed, PartiallySignedTransaction &psbtx, bool &complete)=0 |
| Fill PSBT. More...
|
|
virtual WalletBalances | getBalances ()=0 |
| Get balances. More...
|
|
virtual bool | tryGetBalances (WalletBalances &balances, uint256 &block_hash)=0 |
| Get balances if possible without blocking. More...
|
|
virtual CAmount | getBalance ()=0 |
| Get balance. More...
|
|
virtual CAmount | getAvailableBalance (const wallet::CCoinControl &coin_control)=0 |
| Get available balance. More...
|
|
virtual wallet::isminetype | txinIsMine (const CTxIn &txin)=0 |
| Return whether transaction input belongs to wallet. More...
|
|
virtual wallet::isminetype | txoutIsMine (const CTxOut &txout)=0 |
| Return whether transaction output belongs to wallet. More...
|
|
virtual CAmount | getDebit (const CTxIn &txin, wallet::isminefilter filter)=0 |
| Return debit amount if transaction input belongs to wallet. More...
|
|
virtual CAmount | getCredit (const CTxOut &txout, wallet::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 wallet::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 | canGetAddresses ()=0 |
|
virtual bool | privateKeysDisabled ()=0 |
|
virtual bool | taprootEnabled ()=0 |
|
virtual bool | hasExternalSigner ()=0 |
|
virtual OutputType | getDefaultAddressType ()=0 |
|
virtual CAmount | 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 wallet::CWallet * | wallet () |
| Return pointer to internal wallet class, useful for testing. More...
|
|
Interface for accessing a wallet.
Definition at line 65 of file wallet.h.